Re: Float comparison
| From: | Stanislav Malyshev | Date: | Sat, 03 May 2008 00:05:57 +0000 |
| Subject: | Re: Float comparison | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37416@lists.php.net to get a copy of this message | ||
Hi!
What about introducing a "money" or "currency" numeric type which guarantees say accuracy to 8DP?Funny thing - I blogged about it about a year ago: http://php100.wordpress.com/2007/03/31/making-with-php/ There's some interesting discussion in comments about how people solve it. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com