Login
Plus/4 EncyclopediaFirstBackNextLast

VAL Function
Category
Reference/Commodore Basic V3.5

Topic
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.

Examples
VAL("123.456") Returns the number 123.456
VAL("3E03") Returns the number 3000
VAL("12A13B") Returns the number 12

Abbreviation
V SHIFT+A



Copyright © Plus/4 World Team, 2001-2024