Re: cvs: php-src /ext/standard/tests/math bug24142.phpt
| From: | Derick Rethans | Date: | Thu, 26 Jun 2003 19:50:34 +0000 |
| Subject: | Re: cvs: php-src /ext/standard/tests/math bug24142.phpt | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-22057@lists.php.net to get a copy of this message | ||
On Thu, 26 Jun 2003, Jani Taskinen wrote:
>
> And that is the wrong result. Where did you learn your math?
> Rounding happens UP when the number to be rounded is >= 5..
Only if it's 5.045000000000000000001. If it's exact 5.045 then the
bankers algorithm dictates that it should round down to 5.04 (and 5.055
should round up to 5.06).
Derick
--
"Interpreting what the GPL actually means is a job best left to those
that read the future by examining animal entrails."
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
International PHP Magazine http://php-mag.net/
-------------------------------------------------------------------------