This constant provides the numeric value for pi, the ratio of circumference of a circle to its diameter.
The resulting value returned is approximately 3.141592653589793 (to 15 d.p.)
Note that Math.sin(Math.PI/2) may not yield exactly 1.
Note that Math.cos(Math.PI) may not return precisely zero.
Note that Math.acos(0) may not return the same value as Math.PI.
Prev | Home | Next |
Math.min() | Up | Math.pow() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |