Padding with Zeros

BlitzMax Forums/BlitzMax Beginners Area/Padding with Zeros

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

What is the simplist way to pad a number with leading zeros. The number will be 4 digits.

0001
0015
0256
0009

I know this is easy but for some reason it is eluding me.