JS Built-ins
← Math26 / 215
MathPIbeginner

Math.PI β€” the value

πŸ“– Usage Example
// Pi β€” ratio of circumference to diameter
Math.PI       // β†’ 3.1415926535...
2 * Math.PI   // β†’ 6.2831... (full circle in radians)

Use Math.PI when calculating circle circumferences, areas, or converting between degrees and radians.

Math.PI

The ratio of a circle's circumference to its diameter, approximately 3.141592653589793.

Challenge: Explore the value of Math.PI and verify its type and range.

πŸ’‘ Hints (2)
  • β€’ Math.PI is the ratio of a circle's circumference to its diameter.
  • β€’ Its value is approximately 3.141592653589793.