note 64942 deleted from function.pi by nlopess

From: Date: Sun, 23 Apr 2006 11:18:59 +0000
Subject: note 64942 deleted from function.pi by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-109152@lists.php.net to get a copy of this message
Note Submitter: tikras#hakeris#co#uk ---- PHP 5.1.2 allows 51 numbers after decimal point when changing precision to whatever value. You can easily generate the Pi value using: <?php ini_set("precision","8000"); $r=22/7; echo $r; // Outputs 3.142857142857142793701541449991054832935333251953125 ?> This is more accurate than comments below, though I am not sure about 51 numbers after decimal point in versions below 5.1.2

« previous php.notes (#109152) next »