note 32289 added to function.ceil

From: Date: Thu, 22 May 2003 16:24:54 +0000
Subject: note 32289 added to function.ceil
Groups: php.notes 
Request: Send a blank email to php-notes+get-48834@lists.php.net to get a copy of this message
>If you want, say, 2.6 to round to 3, and -2.6 to round to -3, you want round(), which rounds >away from zero. round() does not always round away from zero round(2.4) = 2 round(2.6) = 3 round(-2.4) = -2 round(-2.6) = -3 round() rounds number to nearest non-decimal number. ---- Manual Page -- http://www.php.net/manual/en/function.ceil.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32289 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32289&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32289&report=yes

« previous php.notes (#48834) next »