Home, Up: Operators and Constants
Hypatia knows the following constants:
PI, TAU (PI times 2), E (Euler's number), and PHI (the "golden ratio").
User-defined constants will be discussed in the context of variables.
PI = 3.141592653589793238
TAU = 6.28318530717958648
E = 2.718281828459045235
PHI = 1.618033988749894848
While floating point numbers are shown with up to 15 significant digits, Hypatia's internal accuracy is somewhat higher. Constants are defined with 19 digits to reduce rounding errors of calculation results as far as possible.
Home, Up: Operators and Constants, Prev: n-Argument Operators, Next: Pseudo Constants