A double expression uses operators plus (+), minus (-), multiply (*), divide (/), parenthesis () and math-functions. For example:
set-double d1 = 10.331+(4*n2-5)/3.5+exp(3)
Copied!
You can use double expressions anywhere double is expected as an input to any statement. Read about mixing-doubles-and-numbers.
Note that no checks are performed to catch overflows, underflows and division by zero. With double expressions, such events may produce NAN, +/-INF or otherwise incorrect results but the program will continue, and represent bugs in your code. Use "--fpe" option in gg during debugging and testing to catch such problems.