Main sections
FORMAT$()
fmt$ = FORMAT$(numLetters#, numAfterComma#, number#)
Converts a number into a string. The string will be at least numLetters# long (spaces will be preceded if required) and has exactly numAfterComma# digits after the dot.
// --------------------------------- //
// Project: FORMAT$()
// Start: Tuesday, May 25, 2004
// IDE Version: 1.40525
FOR i=0 TO 20
num = RND(100000)/RND(10000)
PRINT num, 0, i*20
PRINT FORMAT$(6, 2, num), 300, i*20
NEXT
SHOWSCREEN
MOUSEWAIT
Output:
3 3.00
157 157.00
12 12.00