Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37416 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 363 invoked from network); 3 May 2008 00:06:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 May 2008 00:06:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:28648] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/78-55202-F6CAB184 for ; Fri, 02 May 2008 20:06:08 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Sat, 3 May 2008 03:07:01 +0300 Received: from [192.168.16.217] ([192.168.16.217]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 2 May 2008 17:06:55 -0700 Message-ID: <481BAC65.9030407@zend.com> Date: Fri, 02 May 2008 17:05:57 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: RQuadling@GoogleMail.com CC: Alain Williams , internals@lists.php.net References: <001401c8ac74$dda6d060$98f47120$@com> <1209749793.1075.54.camel@inspiron.local> <481B5F45.4030106@gmail.com> <481B6068.9060402@lerdorf.com> <1209758625.1075.87.camel@inspiron.local> <20080502232537.GB6064@mint.phcomp.co.uk> <10845a340805021659p34b5b403r9c2f00b96eb83803@mail.gmail.com> In-Reply-To: <10845a340805021659p34b5b403r9c2f00b96eb83803@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 May 2008 00:06:55.0457 (UTC) FILETIME=[98E7B510:01C8ACB1] Subject: Re: [PHP-DEV] Float comparison From: stas@zend.com (Stanislav Malyshev) 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