From 7e04f8541834048307f8d687cde00a4b209a65c6 Mon Sep 17 00:00:00 2001 From: jim winstead Date: Sat, 8 Dec 2001 19:32:00 +0000 Subject: [PATCH] floor: add examples, say 'truncating' instead of 'rounding down'. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@64284 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/math.xml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/functions/math.xml b/functions/math.xml index b1303b3057..a82eb91859 100644 --- a/functions/math.xml +++ b/functions/math.xml @@ -1,5 +1,5 @@ - + Mathematical Functions Math @@ -599,12 +599,21 @@ $binary = base_convert ($hexadecimal, 16, 2); - Returns the next lowest integer value by rounding down + Returns the next lowest integer value by truncating value if neccessary. The return value of floor is still of type - float as the value range of float is + float because the value range of float is usually bigger than that of int. + + <function>floor</function> examples + + + + See also ceil and round.