EVALUATE EXPRESSION
Evaluates a mathematical expression and returns its result.
Note that the returned result is always a double float value.
The following operators are supported: +, -, *, /, ^, and parentheses.
The expression evaluator has a couple of built-in functions:
ABS() returns an absolute value
ATAN() calculates the arctangent of a value (given in radians)
COS() calculates the cosine of a value (given in radians)
EXP() returns the exponential of a value
LN() returns the natural log of a value
ROUND() returns the value rounded to the nearest whole number
SIN() calculates the sine of a value (given in radians)
SQRT() returns the square root of a value
TRUNC() truncates a real number to an integer
You can specify variables prior to the evaluation as well
ARGUMENTS:
* Expression$ = a string that contains the expression to evaluate
RETURNS:
Returns the result of the evaluation.
SYNTAX
Return Double Float=EVALUATE EXPRESSION(Expression$)
RELATED INFO
View Number Operations Index
View STYX Index
View STYX Main File