Math module

PI

constantSource

Pi as a float (3.1415927). Use PI64 for double precision.

Example↗
assert(abs(PI - 3.14159) < 0.0001);
PI :: cast(float32) 3.1415927

See also