Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Leading Zeros
#1
What's the best way to affix leading zeros to a number...
from 1, 2...12,13

so they are:
0001
0002
...
0012
0013

thanks,
jimmy Vig
#2
Macro Macro1269
Code:
Copy      Help
int i=76
str s
s.format("%04i" i)
out s
#3
I knew it was something like that! Geeze, I'm glad I didn't post the hack way I was planning on it!

Thanks!


Forum Jump:


Users browsing this thread: 1 Guest(s)