Constants

The constants define certain fixed values. These are further explained in the list below. To optimize runtime, all values are rounded to 14 decimal places.

Constant Value Description
PI 3.1415926535898 The number Pi
PI_2 1.5707963267949 The number Pi/2
PI_4 0.78539816339745 The number Pi/4
1_PI 0.31830988618379 The number 1/Pi
2_PI 0.63661977236758 The number 2/Pi
SQRTPI 1.7724538509055 The square root of Pi
2_SQRTPI 1.1283791670955 The 2/square root of Pi
SQRT2 1.4142135623731 The square root 2
SQRT3 1.7320508075689 The square root 3
SQRT1_2 0.70710678118655 The number 1/square root 2
LNPI 1.1447298858494 Logarithm of Pi
EULER 0.57721566490153 Euler constant
E 2.718281828459 e
LOG2E 1.442695040889 Logarithm 2 of e
LOG10E 0.43429448190325 Logarithm 10 of e
LN2 0.69314718055995 Logarithm 2
LN10 2.302585092994 Logarithm 10
INT_MIN -9'223'372'036'854'775'808 Smallest supported integer
INT_MAX 9'223'372'036'854'775'807 Largest supported integer
INT_SIZE 8 The size of the integer in bytes
TRUE TRUE True
FALSE FALSE False
NULL NULL Null value or initial value