Start · Sprachen · PHP · Referenz · M_PI

M_PI

Konstante

π (3.14159265358979...). Alias: <code>pi()</code>.

seit PHP 4.0.0 Kategorie: math

Signatur

const M_PI

Beschreibung

Weitere Math-Konstanten: M_E, M_LN2, M_LN10, M_PI_2.

Rückgabewert

Typ
float

Beispiele

Basis

<?php

$area = M_PI * $radius ** 2;