> You are absolutely right, we have to do something about handling money better before 
>anyone else
> notices that 0.7 plus 0.1 is not 0.8 with php!  (I've already had an e-commerce user 
>notice that
> their account balance is misquoted because 82 - 2 became 79 because of this).

If you are dealing with something as simple as money, do not use floating 
point at all.  Just multiply everything by 100 and deal only with 
integers.  That solves all your problems without any performance hit.

There is nothing to fix here.  

-Rasmus


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to