Jump to content
UBot Underground

Number Format 1,2,3 To 001,002,003 Etc


Recommended Posts

Hey hey! :-)

 

is there a way to edit the number format from 1,2,3,10, ... to something like this: 001,002,003,010,...

Don't know how to explain, but i think you know what i mean :D

 

 

Thanks buddys!

Link to post
Share on other sites

Hi.

 

Where do you want to change that? Like in a variable when you store a number?

Or do you talk about converting an existing variable like 1 into 001?

 

Please explain that a bit further so that we can help you.

 

Dan

Link to post
Share on other sites

this can be done with a couple if/then statements and the $string pad function

if number lest than 10 then pad with zeros to the length that you want

and so forth

or

if the value of the number is not important then just pad the string length to the desired length with the $string pad function when you write the value

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...