Adding correct amount 0 as prefix

Hello all,

i am trying to create a string or number which should be 3 digits always.

as you can see, i need to write number 1 as 001 and number 15 will be 015 for example. if number is 159, it is ok and will stay as it is.

i tried padleft but failed to fill with 0.

add “padChars” using “0” but be aware that you are no longer dealing with numbers but strings :slight_smile:

1 Like

arg!! :slight_smile: thanks for the tip!!! all in need to write “0”