JavaScript PIProperty
Definition and Usage
The PI property is π, which is the ratio of a circle's circumference to its diameter. This value is approximately 3.14.
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the PI property.
Syntax
Math.PI
Technical Details
| Return value: | Returns pi (approximately 3.14159). |
|---|---|
| JavaScript Version: | 1.0 |
Other Extensions
JavaScript Math Object