How to get the value of PI

This forum covers all minor versions of PHP 7
Post Reply
User avatar
Administrator
Site Admin
Posts: 1725
Joined: Thu Mar 22, 2018 10:19 am

How to get the value of PI

Post by Administrator » Fri Aug 24, 2018 10:59 am

The value of PI is one of the Constants in PHP

Code: Select all

echo M_PI; // 3.14159265358979323846

more on built in math constants at

http://php.net/manual/en/math.constants.php

Post Reply