From cb63f13595c8b0bd0e0d53c3c23d2487e97c3940 Mon Sep 17 00:00:00 2001 From: Ron Chmara Date: Sun, 10 Dec 2000 03:31:50 +0000 Subject: [PATCH] added example to ciel() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@37485 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/math.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/functions/math.xml b/functions/math.xml index 0cf6f4319c..2824ec0197 100644 --- a/functions/math.xml +++ b/functions/math.xml @@ -318,11 +318,17 @@ $binary = base_convert ($hexadecimal, 16, 2); float number - + Returns the next highest integer value from number. Using ceil on integers is absolutely a waste of time. - + + +$x = ceil(4.25); +// which would make $x=5 + + + NOTE: PHP/FI 2's ceil returned a float. Use: $new = (double)ceil($number); to