Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79949 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49800 invoked from network); 25 Dec 2014 23:01:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Dec 2014 23:01:41 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.200 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.200 imap1-2.ox.privateemail.com Received: from [192.64.116.200] ([192.64.116.200:50645] helo=imap1-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 10/03-31774-3579C945 for ; Thu, 25 Dec 2014 18:01:39 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 5F66CB0008A; Thu, 25 Dec 2014 18:01:36 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap1.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap1.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id vHc9oUnBKm2K; Thu, 25 Dec 2014 18:01:36 -0500 (EST) Received: from [192.168.0.13] (unknown [94.13.96.117]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 5732CB0008B; Thu, 25 Dec 2014 18:01:35 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: Date: Thu, 25 Dec 2014 23:01:02 +0000 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <162491F3-F774-415C-A6B4-EB66D092C1A3@ajf.me> References: To: Juan Basso X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] [RFC] Preserve Fractional Part in JSON encode From: ajf@ajf.me (Andrea Faulds) > On 25 Dec 2014, at 19:32, Juan Basso wrote: >=20 > The RFC can be found here: > https://wiki.php.net/rfc/json_preserve_fractional_part Hey Juan, A further thought: is =E2=80=9CPreserve Fractional Part=E2=80=9D the = best name? Integral floats like float(12) don=E2=80=99t have any = fractional part, and besides, the name doesn=E2=80=99t tell you what it = does IMO. Perhaps something like JSON_FLOAT_ADD_POINT_ZERO? It=E2=80=99s = more literal and, I think, more obvious. Thanks. -- Andrea Faulds http://ajf.me/