Name
PadNum -- convert number to string with padding (V2.0)
Synopsis
s$ = PadNum(num, len)
Function
This function converts the integer specified in num to a string. Additionally, it adds leading zeros until the string is of the length specified in len. The number must not be negative and must not contain any decimal places.

Inputs
num
number to convert to string
len
desired string length
Results
s$
padded string
Example
DebugPrint(PadNum(9, 2))
Prints "09".

Show TOC