Search code examples
javascriptmathcross-browsercross-platformv8

Cross-Browser/Engine Math.PI is always 3.141592653589793?


just a really random question but is the property Math.PI in javascript always 3.141592653589793 in every browser/engine?


Solution

  • I should hope so.

    The ECMAScript Spec says:

    15.8.1.6 PI

    The Number value for π, the ratio of the circumference of a circle to its diameter, which is approximately 3.1415926535897932.