Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36124 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94300 invoked from network); 13 Mar 2008 17:10:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Mar 2008 17:10:48 -0000 Authentication-Results: pb1.pair.com header.from=tony@daylessday.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tony@daylessday.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain daylessday.org designates 89.208.40.236 as permitted sender) X-PHP-List-Original-Sender: tony@daylessday.org X-Host-Fingerprint: 89.208.40.236 mail.daylessday.org Linux 2.6 Received: from [89.208.40.236] ([89.208.40.236:55641] helo=daylessday.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CC/63-09870-61069D74 for ; Thu, 13 Mar 2008 12:10:47 -0500 Received: from [192.168.3.91] (unknown [212.42.62.198]) by daylessday.org (Postfix) with ESMTP id C30CF6400F2; Thu, 13 Mar 2008 20:10:43 +0300 (MSK) Message-ID: <47D96003.5040306@daylessday.org> Date: Thu, 13 Mar 2008 20:10:27 +0300 User-Agent: Thunderbird 2.0.0.9 (X11/20071114) MIME-Version: 1.0 To: Ryan Brothers CC: internals@lists.php.net References: <2F.42.34038.44059D74@pb1.pair.com> In-Reply-To: <2F.42.34038.44059D74@pb1.pair.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] bug 43053 - scientific notation From: tony@daylessday.org (Antony Dovgal) On 03/13/2008 07:03 PM, Ryan Brothers wrote: > While I understand that the way floating point numbers are stored can vary > and shouldn't be relied upon, I'm more curious why a change was made in PHP > 5.2.2 to print certain numbers in scientific notation In 5.2.1 string-to-double routines were changed to use BSD licensed code (previous version was LGPLed). What you see is just an unintentional side-effect of this update. -- Wbr, Antony Dovgal