Radio Shack TRS-80 PC-3 Owner's Manual page 186

Table of Contents

Advertisement

1 STR$ numeric expression
STR$ is a string function which returns a string which is the character representation of its numeric argument. It is the reverse
of VAL. STR$ 1.59 is" 1.59".
1 VAL string expression
VAL is a string function which returns the numeric value of its string argument. It is the reverse of STR$. The VAL of a non-
number is zero. Val "1.59" is 1.59.
If the string contains alphanumeric character, any numeric character on the right of the alphanumeric is ignored.
VAL (2 LBS 5
aZl
will return "2".
Space is usually regarded as non-existing. However, if space is included in the exponent portion (after El, any numeric character
on the right of space is ignored.
186

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents