From 82f713c2385f7acce81d7978798e11e3b1959903 Mon Sep 17 00:00:00 2001 From: Daniel Beckham Date: Tue, 26 Jun 2001 20:46:01 +0000 Subject: [PATCH] adding example to pi(), mostly so that they precision is obvious git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@50236 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/math.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/functions/math.xml b/functions/math.xml index dbeadeee76..383882607a 100644 --- a/functions/math.xml +++ b/functions/math.xml @@ -943,6 +943,16 @@ $randval = mt_rand(); Returns an approximation of pi. + + + + +echo pi(); +// echo's 3.1415926535898 + + + +