Converts the argument (numeric value or numeric expression value) to a string.
STR$ ( argument )
└──┬───┘
numeric value
numeric expression
STR$(123) STR$(255+3)
10 INPUT "INPUT NUMBERS"; N
20 S$=STR(N)
30 C$=MID$(S$, 2, 1)
40 PRINT "FIRST CHARACTER="; C$
50 END
Converts numeric input to a string. Next, the first number of converted string is displayed as a character.