VAL

Format

number1 = VAL (string1)

Description

This statement will attempt to convert string1 into an integer value, and it will store the result in number1.

Example

A$ = "12345"
A = VAL (A$)
After execution of these statements, variable "A" would contain the value 12345.

See Also

  • STR$