note 22375 rejected from function.round by torben
| From: | torben@php.net | Date: | Sat, 15 Jun 2002 23:01:03 +0000 |
| Subject: | note 22375 rejected from function.round by torben | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-31906@lists.php.net to get a copy of this message | ||
Seems there's a bug in php 4.1.2's round() as:
echo round(12.555, 2);
produces "12.55" not "12.56" as expected.
echo round(12.556, 2);
works fine (and gives "12.56")