note 1737 deleted from function.round by jeroen
| From: | jeroen@php.net | Date: | Sat, 01 Sep 2001 12:42:16 +0000 |
| Subject: | note 1737 deleted from function.round by jeroen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17508@lists.php.net to get a copy of this message | ||
Looks like banker's rounding to me. With banker's rounding, you always round to the
nearest even number when rounding an x.5. Therefore round(2.5)=2 and round(11.5)=12.