note 97765 deleted from function.money-format by danbrown
| From: | danbrown@php.net | Date: | Thu, 06 May 2010 21:44:52 +0000 |
| Subject: | note 97765 deleted from function.money-format by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-169032@lists.php.net to get a copy of this message | ||
Note Submitter: jharris at ecuad dot ca
----
The function parameters of php::money_format(...) imply that it might be sensible to use floats for
currency calculations.
It's not sensible.
Re: (sorry, url is chopped onto two lines to allow it into these php notes)
http://stackoverflow.com/questions/61872/
use-float-or-decimal-for-accounting-application-dollar-amount
the top rated answer says: The answer is easy. Never floats. NEVER !
and gives reasons why.