note 18956 added to function.round
| From: | klove at oktax dot state dot ok dot us | Date: | Mon, 11 Feb 2002 14:36:58 +0000 |
| Subject: | note 18956 added to function.round | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26474@lists.php.net to get a copy of this message | ||
>js5@sanger.ac.uk
>17-Jan-2002 11:17
>
>This isn't a bug. Rounding of "halves" is usally done to the
>even number. This means that on average half of the "halves"
>are rounded up and half of the "halves" are rounded down.
>So that any "average" calculated should not be affected by
>the rounding.
Is this a non-USA thing or something?
I've never heard of this method of rounding (and I've taken 24+ hours of math courses
including Statistical Analysis and Engineering Math I).
I've always been taught that .5 rounds to the next highest integer of abs(n), where n can be
any number positive or negative.
Just curious,
Kenneth Love
--
http://www.php.net/manual/en/function.round.php
http://master.php.net/manage/user-notes.php?action=edit+18956
http://master.php.net/manage/user-notes.php?action=delete+18956
http://master.php.net/manage/user-notes.php?action=reject+18956