4.3.1. evaluate(Expression)

real,string evaluate("Expression")

A utility function that takes an expression and returns the evaluated expression. The returned value is a list variable in which the first element is the numeric value of the expression, and the second is the base unit. For example:

!@myexp = evaluate("10 [degree]/3.0");
!print "myexp=",$myexp[0],"[",$myexp[1],"]\n";

prints:

myexp=0.0581776648759842[rad]