NEVAL() Function - Evaluate Numeric Expression

Syntax

NEVAL(str{,ERR=lineref})

Description

For BBj-specific information, see the NEVAL() Function - BBj.

The NEVAL() function is intended to replace the use of EXECUTE for the purpose of evaluating numeric expressions in public programs. NEVAL() returns the value from the numeric expression in str after compiling and executing the str.

Examples

>LET A=2
>PRINT NEVAL("A+5")
7
>A$="a"
>PRINT NEVAL(A$)
2

See Also

Functions - Alphabetical Listing