Toshiba KB-80 Computer Keyboard User Manual


 
- 70 -
VAL
Function Converts a character string to a numeric value.
Format VAL ( <character string> )
Explanation The opposite of the STR$ function, the VAL function converts a character string
indicating the numeric value for a 1-byte or 2-byte character (ex. “456”) to a numeric
value (ex. 456).
Spaces, tabs and line feeds placed at the beginning of the character string are
ignored.
VAL (“ -6”) is converted to the numeric value, -6.
When the character string is not a 1-byte character or 2-byte character, as in the case
of a number, Kanji code, hexadecimal number or octal number, the VAL function
provides “0”.