FVAL
Format: var = FVAL (string expr)
Supported by: COMX BASIC V1.00, Pecom 32 BASIC, Pecom 64 BASIC 1.0 and 4.0, RCA BASIC3 V1.1, Telmac SBASIC v 24.3
Similar commands: -
This function evaluates the string expression as an arithmetic expression and returns its value. In this manner the user can create mathematical functions. The followings contain three examples of FVAL usage.
For example
10 A$="8+4" 20 PR FVAL (A$) 30 PR FVAL (A$+"/2") 40 PR FVAL ("SQR(3)") RUNwill result in:
12
10
1.73205
Where 12 is the evaluation of A$, 10 is the evaluation of "8+4/2" and 1.73205 is the evaluation of SQR (3)
The string is limited to about 48 characters. Beyond that length, valuable data area may be clobbered.