back to Command Reference
[All Models]
Performs calculation of a numeric expression expressed as a string, and returns the result.
VALF ( string )
└─┬──┘
String expression
VALF(X$)
string: String expression
VALF cannot be used within a VALF argument.10 X$ = "123+456"
20 PRINT VALF(X$)
30 PRINT VALF("EXP 2")
RUN
579
7.389056099
Executes the strings “123+456” and “EXP 2” as numeric expressions and displays results.