PI
Math
class propertyS2C Home
« Globals « Math « PI
Description
Returns the circumference to diameter ratio of a circle.
- Like all class properties
PI
should be used on the class rather than an instance of the class.
Syntax
Signature | Description |
---|---|
Math.PI | Returns the circumference to diameter ratio of a circle. |
Parameters
None.
Examples
The code below displays PI
usage.
alert('PI: ' + Math.PI) // 3.141592...
Related Tutorials
JavaScript Advanced Tutorials - Lesson 4 - Math