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.

If you know the maximum number of digits you need in a number then the following is enough (example for 8 digits)...

scoreText$=Right("0000000"+score,8)