From a46296bfaa46fdc96765fda557432bdcfb5a98b1 Mon Sep 17 00:00:00 2001 From: irc-html Date: Wed, 9 Jan 2002 23:59:53 +0000 Subject: [PATCH] added example to abs(), corrected spelling errors git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@67455 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/math.xml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/functions/math.xml b/functions/math.xml index 3c49b72a06..3a3f6f0701 100644 --- a/functions/math.xml +++ b/functions/math.xml @@ -1,5 +1,5 @@ - + Mathematical Functions Math @@ -145,6 +145,16 @@ otherwise it is integer (as float usually has a bigger value range than integer). + + <function>abs</function> example + + + + @@ -632,7 +642,7 @@ $ten = ceil(9.999); // $ten = 10.0; Returns the next lowest integer value by rounding down - value if neccessary. + value if necessary. The return value of floor is still of type float because the value range of float is usually bigger than that of int.