| VAL Function | Reference/Commodore BASIC V3.5
VAL(X$)
This function returns a numeric value.
This function converts strings containing numeric characters into numeric values. It is the opposite of the STR$ function.
It can also convert strings which represent numbers in scientific notation.
If there are any illegal characters in the string, only the portion of the string from the left up to the first illegal character is converted.
VAL("123.456") Returns the number 123.456
VAL("3E03") Returns the number 3000
VAL("12A13B") Returns the number 12
V SHIFT+A |
| |
Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon |