note 21436 added to function.round

From: Date: Mon, 13 May 2002 10:51:35 +0000
Subject: note 21436 added to function.round
Groups: php.notes 
Request: Send a blank email to php-notes+get-30577@lists.php.net to get a copy of this message
This was taken from the MySQL site. I suspect the same applies to the PHP round function. Note that the behavior of ROUND() when the argument is half way between two integers depends on the C library implementation. Some round to the nearest even number, always up, always down, or always toward zero. If you need one kind of rounding, you should use a well-defined function like TRUNCATE() or FLOOR() instead. -- http://www.php.net/manual/en/function.round.php http://master.php.net/manage/user-notes.php?action=edit+21436 http://master.php.net/manage/user-notes.php?action=delete+21436 http://master.php.net/manage/user-notes.php?action=reject+21436

« previous php.notes (#30577) next »