Table of Contents

Advertisement

6-3 Character Functions
STR$
(Numeric expression)
Function:
Converts the value of a numeric expression into a character string.
Parameter:
Numeric expression
:
Explanation:
Numeric value, calculation expression, numeric varia-
ble, numeric array variable.
1) Converts the value of a numeric expression into a character string.
2) When the numeric expression is a calculation expression, the calculation
result is converted into a character string.
3) When a numeric expression is positive
,
th.e sign digit is deleted and only the
numerals are converted
.
Example:
10 A=123
20 PRINT
STR$<A>+~45~
30 END
*If this program is executed, character strings "123" and "45" will be con-
nected and "12345" will be displayed
.
(Same as "123"
+
"45")
143

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents