PI

Definition: constant PI = 3.14159265358979323846...
Description: The mathematic constant PI has been defined as a global constant in phix.
Comments: Enough digits have been used to attain the maximum accuracy possible for a phix atom. (At the time of writing this is probably not true for 64-bit, especially for any 64-bit app created using a 32-bit version of the phix compiler. When things settle down, I may look into using the floating point hardware (fldpi) to establish this value rather than specifying it via a decimal text string - which is likely to be a pretty trivial chunk of #ilASM, little more than just fldpi; lea e/rdi,[PI]; call:%pStoreFlt.)
Example:
x = PI  -- x is 3.1415926...
See Also: sin, cos, tan