Double expressions

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)

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.
See also
Doubles
abs-double  
double-expressions  
double-string  
mixing-doubles-and-numbers  
set-double  
string-double  
See all
documentation


Copyright (c) 2019-2025 Gliim LLC. All contents on this web site is "AS IS" without warranties or guarantees of any kind.