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/
-------------------------------------------------------------------------
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php