note 31436 deleted from function.ceil by hholzgra

From: Date: Mon, 16 Apr 2012 06:18:06 +0000
Subject: note 31436 deleted from function.ceil by hholzgra
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-187157@lists.php.net to get a copy of this message
Note Submitter: IceKarma ---- ceil() rounds towards positive infinity ("up"), floor() rounds towards negative infinity ("down"). 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.

« previous php.notes (#187157) next »