Str


Function Str( numeric expression )


Returns a character string consisting of the string value of numeric expression.


Syntax a = Str( 4 * 1/10 + 6 )


Remarks

Str accepts floating point numbers.


See Also

Val Conversion Functions String Functions


Example Script


NUMBER i

STRING s(20)


FOR i = 100 TO 119

s(i MOD 100) = "Element " + STR(i MOD 100) + " is " + STR(i)

NEXT i


FOR i = 0 TO 19

PRINT s(i)

NEXT


ERASE(s)


Script Output


Element 0 is 100

Element 1 is 101

Element 2 is 102

Element 3 is 103

Element 4 is 104

Element 5 is 105

Element 6 is 106

Element 7 is 107

Element 8 is 108

Element 9 is 109

Element 10 is 110

Element 11 is 111

Element 12 is 112

Element 13 is 113

Element 14 is 114

Element 15 is 115

Element 16 is 116

Element 17 is 117

Element 18 is 118

Element 19 is 119