Top | Up (String) | < Previous (VAL) | Next (FORMAT$) >
Converts a number to a string.
STR$ number [, length%] OUT string$
Parameter | Description |
---|---|
number | If this is a float, STR$ will print at most 6 significant figures, using scientific notation if nessesary. |
length% | If the length of the output is shorter than this, spaces will be added to the beginning of the string |
STR$
uses the formatting code %.6g
for floats and %d
for integers.
SCORE=1000
PRINT "SCORE: "+STR$(SCORE) 'SCORE: 1000