note 118366 deleted from function.pi by sobak
| From: | sobak@php.net | Date: | Tue, 22 Nov 2016 10:29:50 +0000 |
| Subject: | note 118366 deleted from function.pi by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207506@lists.php.net to get a copy of this message | ||
Note Submitter: hello at gmail dot com
----
You can print pi in a more complicating way. In the code bellow we save pi as a variable and print
its first 4 digits.
$n = pi();
echo round ($n,4);