VAL

Function

VAL performs the inverse of STR$. It converts a string of digits into a number.

Syntax

VAL(“STRING”)

Examples

10 A$ = "123.6"
20 B = VAL(A$)

sets B to 123.6

Remarks

Exponential notation numbers are converted literally.

Example:

10 A$ = "2.91E6"
20 B = VAL(A$)

sets B = 2.91E6