Logo

Math Functions

abs acos acosh asin asinh atan atan2 atanh base_convert bindec ceil cos cosh decbin dechex decoct deg2rad exp expm1 fdiv floor fmod hexdec hypot intdiv is_finite is_infinite is_nan log log10 log1p max min octdec pi pow rad2deg round sin sinh sqrt tan tanh

pi

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Get value of pi
<?php pi(): float
Logo Intervention/image Intervention/image
<?php             if ($this->angle != 0) {



                $angle = pi() * 2 - $this->angle * pi() * 2 / 360;



                for ($i=0; $i<4; $i++) {

                    $x = $box[$i * 2];
src/Intervention/Image/Gd/Font.php