Board Thread:Questions and Answers/@comment-24031030-20131009155601/@comment-1595298-20131009161341

I think you might have some problems with variables that large in the first place, since the maximum integer usable in SMILEBASIC is 524288. However, you could certainly store experience as several smaller values and use a custom routine to add to it. (But unfortunately, your example above of 452 won't fit in a single GRP pixel, so you might have to use 2 digits each, which would take up 4 pixels for each EXP type.)

As for your original question of adding zeros to the start of a string, I usually find something like RIGHT$("00"+STR$(VAL),3) works well.