STR ( )
Action

Returns a string representation of a number.

Syntax

var = Str( x )

Remarks

var A string variable.
X A numeric variable.
x : Byte, Integer, Word, Long, Single.

The string must be big enough to store the string.


See also
VAL

Difference with QB
In QB STR() returns a string with a leading space. This behaviour is not in BASCOM.


Example


Dim a as Byte, S as XRAM String * 10
a = 123
s = Str(a)
Print s
End