Easy Tutorial
❮ Prop Style Flexshrink Jsref Multiline Regexp ❯

JavaScript PI Property

JavaScript Math Object

Example

Return PI:

Output result:


Definition and Usage

The PI property 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

Technical Details

Return Value: Returns the number π (approximately 3.14159).
JavaScript Version: 1.0
--- ---

JavaScript Math Object

❮ Prop Style Flexshrink Jsref Multiline Regexp ❯