PHP - PI
Trieda
Metóda - PI
Returns an approximation of π. The precision is limited by the precision of
float defined in the php.ini file (14 decimal places by
default).
The result is the same as the M_PI constant.
Procedurálne
- function PI () : void
Parametre
ŽiadneMávratovej hodnoty
The approximation of π.
Príklady
<?php
// Calculating a circle's area
echo pi()*(1**2);
?>
