QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

The STR$ function returns the STRING representation of a numerical value.

Syntax

result$ = STR$(number)

Parameter(s)

Description

Example(s)


PRINT STR$( 1.0 )
PRINT STR$( 2.3 )
PRINT STR$( -4.5 )


 1
 2.3
-4.5


a = 33
PRINT STR$(a) + "10" + "1" + "who" + STR$(a) + STR$(a) + LTRIM$(STR$(a))


 33101who 33 3333

See Also