Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91374 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62052 invoked from network); 24 Feb 2016 11:22:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2016 11:22:55 -0000 X-Host-Fingerprint: 178.62.40.5 ajf.me Received: from [178.62.40.5] ([178.62.40.5:14031] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4E/9B-38634-E829DC65 for ; Wed, 24 Feb 2016 06:22:54 -0500 Message-ID: <4E.9B.38634.E829DC65@pb1.pair.com> To: internals@lists.php.net References: <47.95.38634.798BCC65@pb1.pair.com> <56CCFDD2.4000102@gmail.com> Date: Wed, 24 Feb 2016 11:22:51 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 178.62.40.5 Subject: Re: [PHP-DEV] Re: [RFC] Deprecations for PHP 7.1 From: ajf@ajf.me (Andrea Faulds) Hi, Andrea Faulds wrote: > $ php -r 'var_dump(1.00000000000002, 1.00000000000001, 1.00000000000001 > === 1.00000000000002);' > float(1) > float(1) > bool(true) I missed this when proof-reading. The output is actually: php -r 'var_dump(1.00000000000002, 1.00000000000001, 1.00000000000001 === 1.00000000000002);' float(1) float(1) bool(false) Which reflects the point I was trying to make (two numbers that are NOT exactly equal according to === are printed identically by var_dump()). I made a mistake in my original email, sorry. -- Andrea Faulds https://ajf.me/