Skip to content

BASIC STR$ Function

Mike Hogsett edited this page Aug 28, 2024 · 2 revisions

STR$

TYPE: BASIC String Function

FORMAT: STR$(numeric)

Action:

STR$ gives you the string representation of the numeric value of the argument. When the STR$ value is converted to each variable represented in the numeric argument, any number shown is followed by a space and, if it's positive, it is also preceded by a space.

EXAMPLES of STR$ Function:

100 FLT = 1.5E4: ALPHA$ = STR$(FLT)
110 PRINT FLT, ALPHA$

15000     15000

Clone this wiki locally