Re: [Json] -0.0

Tim Bray <tbray@textuality.com> Thu, 26 September 2013 18:57 UTC

Return-Path: <tbray@textuality.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B4D9121E80AD for <json@ietfa.amsl.com>; Thu, 26 Sep 2013 11:57:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.817
X-Spam-Level:
X-Spam-Status: No, score=-2.817 tagged_above=-999 required=5 tests=[AWL=0.159, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zHPfAdM7y4Zf for <json@ietfa.amsl.com>; Thu, 26 Sep 2013 11:57:12 -0700 (PDT)
Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by ietfa.amsl.com (Postfix) with ESMTP id C49B721E8094 for <json@ietf.org>; Thu, 26 Sep 2013 11:57:12 -0700 (PDT)
Received: by mail-ve0-f171.google.com with SMTP id pa12so1265640veb.16 for <json@ietf.org>; Thu, 26 Sep 2013 11:57:12 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=C6dmY21FFj2oQJcriWsyaCSuG+lxbutkcfXFd/Y4SFk=; b=QzYAJ013KsRHvQwKW16c+kY6yI4/p7ojlfWhaHnv7SHVuOGjtBVjMfnNQU3HwqyWF8 EhwYSBkevZhvJ6XeWu0+cFP9ZdxZ52dzFk7eznOF6679xjlIlgv5wH71LNx0MdUccT2M 63WgTqM1A8Rdxhgd/O79Jfkuq89+TTvG5mMgUyloYC5RPFpxbU/I8IEarGbsI1neTLEh 8Yr+9KFQHnJ/7FVkPJM5anCjcvHs6uZVnwxpnHUuU2Exocj6DDtQBynks1Z0JO6xV2+a kkmf4fApJPeCNkGjQpijzcXAsuez9IAKoEVPmbm4Ccrj5iQukJegVsqHBxnG9ElmwBaD DOQw==
X-Gm-Message-State: ALoCoQkMc1UUSf0+vy1CrfqNKjgxbIuSKNezTeh3iTKXPPrDFL9rtpQzJWSUlvgYiz+AglLaYiNX
MIME-Version: 1.0
X-Received: by 10.58.190.34 with SMTP id gn2mr2008536vec.34.1380221832234; Thu, 26 Sep 2013 11:57:12 -0700 (PDT)
Received: by 10.221.64.201 with HTTP; Thu, 26 Sep 2013 11:57:12 -0700 (PDT)
X-Originating-IP: [96.49.81.176]
In-Reply-To: <CAChr6SzPeOoeJd1z1VNHTk1Jk+3zUY=D2AcboGxYtphYHOCdjw@mail.gmail.com>
References: <BF7E36B9C495A6468E8EC573603ED9411EF1BB0B@xmb-aln-x11.cisco.com> <CAChr6SyznBktmOLpT-EiZ5Nm_0jZ16M0tOo4aZ_jhSDb=HHDqg@mail.gmail.com> <6D5CFCAD-5B75-4246-BE42-D42E4D35C344@vpnc.org> <CAChr6SzEBdgF_Cv2ZnC1Oo2CnL06dwZqsOKA=HTVkgArcTyLEw@mail.gmail.com> <CAHBU6iu=LbwcZgEPzKgurR7s+jCUeVMEagq1knzOBWUky9SLoA@mail.gmail.com> <CAChr6SzPeOoeJd1z1VNHTk1Jk+3zUY=D2AcboGxYtphYHOCdjw@mail.gmail.com>
Date: Thu, 26 Sep 2013 11:57:12 -0700
Message-ID: <CAHBU6iu1LrpvTQc12cvO+8uCVdvE7d6p_jsBUKQ1qi1peFfHNw@mail.gmail.com>
From: Tim Bray <tbray@textuality.com>
To: R S <sayrer@gmail.com>
Content-Type: multipart/alternative; boundary="089e0158bee8059f3904e74df052"
Cc: Paul Hoffman <paul.hoffman@vpnc.org>, JSON WG <json@ietf.org>
Subject: Re: [Json] -0.0
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "JavaScript Object Notation \(JSON\) WG mailing list" <json.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/json>, <mailto:json-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/json>
List-Post: <mailto:json@ietf.org>
List-Help: <mailto:json-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/json>, <mailto:json-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Sep 2013 18:57:19 -0000

Hm, I bet that there are languages that look at the JSON number and if
there's no exp or frac parts, jam it into an integer; do modern *integer*
implementations preserve negative zero?


On Thu, Sep 26, 2013 at 11:52 AM, R S <sayrer@gmail.com> wrote:

> On Thu, Sep 26, 2013 at 11:50 AM, Tim Bray <tbray@textuality.com> wrote:
>
>> Well, except for the very first thing I tried, a modern Ruby with the
>> default "require 'json'", did not preserve the sign.
>>
>
> I bet they would take a patch, though. I was wondering whether we were
> enshrining a bug in the spec or catering to other floating point
> implementations.
>
> - Rob
>