Latest web development tutorials

propriété JavaScript PI

Math Object Reference JavaScript Object Math

Exemples

PI Retour:

Math.PI;

sortie:

3.141592653589793

Essayez »

Définition et utilisation

attribut PI est π, circonférence d'un cercle et son rapport de diamètre. Cette valeur est d'environ 3.14.


support du navigateur

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Tous les principaux navigateurs prennent en charge l'attribut PI.


grammaire

Math.PI

détails techniques

Retours: pi Retour (approximativement égale à 3,14159).
Version JavaScript: 1.0


Math Object Reference JavaScript Object Math