JavaScript Math.PI
Description
Math.PI returns PI (the ratio of a circle's area to the square of its radius, approximately 3.14)
Browser Support
Math.PI
is an ECMAScript1 (JavaScriopt 1997) feature.
It is supported in all browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | Yes |
Syntax
Math.PI
Return Value
A number representing PI. |