Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80169 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82955 invoked from network); 5 Jan 2015 04:18:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jan 2015 04:18:33 -0000 Authentication-Results: pb1.pair.com header.from=jrbasso@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jrbasso@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.42 as permitted sender) X-PHP-List-Original-Sender: jrbasso@gmail.com X-Host-Fingerprint: 209.85.192.42 mail-qg0-f42.google.com Received: from [209.85.192.42] ([209.85.192.42:48958] helo=mail-qg0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/41-09311-7901AA45 for ; Sun, 04 Jan 2015 23:18:32 -0500 Received: by mail-qg0-f42.google.com with SMTP id q108so15088931qgd.1 for ; Sun, 04 Jan 2015 20:18:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Si/nGHEQ2t+S8ynSP58CRVmdeBq1yuD9o/spFGq6FGw=; b=umlilDER6oUBM2Yq0CbetTRV+R9tKVFCIqcdY8K1pxwelCIBOC85xSR2mnFJg7ohA2 37qPdhAXPNKbhYm4jIMNLxxD2mSUfoGSBydIje7bDBJAD/FG1aA1GgxW0Lpf148ulgrd IgVzgEU0cujOMEOWph7+1U+Hozim3uZBHubhjd9SUPhuxF0UfwPM/yJ4CgV8wBTHA6bK aIax31I/7jBUldTWahFs0WSHHNblo6YKGW/Qq6BvmMQZqrLn9uqj1Yp4AzTiGc1dJ0Dy M+M0s3vskQ3mHOrbTc/XXwx9xH6L/JCSgHWFOMPxXxxCyBdUKGfETZlnjXAJyeuhHdhb JIog== MIME-Version: 1.0 X-Received: by 10.140.36.239 with SMTP id p102mr135882618qgp.8.1420431508736; Sun, 04 Jan 2015 20:18:28 -0800 (PST) Received: by 10.140.17.80 with HTTP; Sun, 4 Jan 2015 20:18:28 -0800 (PST) In-Reply-To: References: <162491F3-F774-415C-A6B4-EB66D092C1A3@ajf.me> Date: Mon, 5 Jan 2015 02:18:28 -0200 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=001a11c11e0681915d050bdffb47 Subject: Re: [PHP-DEV] [RFC] Preserve Fractional Part in JSON encode From: jrbasso@gmail.com (Juan Basso) --001a11c11e0681915d050bdffb47 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Everyone has any concern on the constant name as Andrea mentioned? Should we keep or rename it? If this name is fine and there is no other concerns probably in 3 days (when completes 2 weeks) this RFC can be moved to voting, right? Thanks, Juan Basso On Thu, Dec 25, 2014 at 9:17 PM, Juan Basso wrote: > Andrea, > > I am not a specialist in float numbers, but I think integral float number= s > have a fractional part with value 0. > > JSON_FLOAT_ADD_POINT_ZERO can be confuse for regular floats with non-zero > as fractional part. Seems you are going to add a point zero in a regular > float with point something. > > Anyway, I am open to rename the constant to make it clear for everyone. I > just can't find a better name than that. By the way, this name was propos= ed > by Kevin Israel (plstand) on the PR. > > On Thu, Dec 25, 2014 at 9:01 PM, Andrea Faulds wrote: > >> >> > On 25 Dec 2014, at 19:32, Juan Basso wrote: >> > >> > 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 bes= t name? Integral >> floats like float(12) don=E2=80=99t have any fractional part, and beside= s, 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/ >> >> >> >> >> > --001a11c11e0681915d050bdffb47--