Re: [Json] Limitations on number size?

Nico Williams <nico@cryptonector.com> Tue, 09 July 2013 22:22 UTC

Return-Path: <nico@cryptonector.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 34BEF21E805D for <json@ietfa.amsl.com>; Tue, 9 Jul 2013 15:22:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.145
X-Spam-Level:
X-Spam-Status: No, score=-2.145 tagged_above=-999 required=5 tests=[AWL=-0.168, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
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 Ri7Wod2g2JCd for <json@ietfa.amsl.com>; Tue, 9 Jul 2013 15:22:21 -0700 (PDT)
Received: from homiemail-a96.g.dreamhost.com (mailbigip.dreamhost.com [208.97.132.5]) by ietfa.amsl.com (Postfix) with ESMTP id DD67B21E8051 for <json@ietf.org>; Tue, 9 Jul 2013 15:22:19 -0700 (PDT)
Received: from homiemail-a96.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a96.g.dreamhost.com (Postfix) with ESMTP id 58CFB3B8069 for <json@ietf.org>; Tue, 9 Jul 2013 15:22:19 -0700 (PDT)
Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a96.g.dreamhost.com (Postfix) with ESMTPSA id E5F9E3B8072 for <json@ietf.org>; Tue, 9 Jul 2013 15:22:18 -0700 (PDT)
Received: by mail-wg0-f52.google.com with SMTP id b12so5288874wgh.19 for <json@ietf.org>; Tue, 09 Jul 2013 15:22:16 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=oHnmoAHqXOl7WGMY+sATBqRO2DOhr2eYzJXFvA7milc=; b=nwosnX/cC57QkzEQAkwho99a2j+zzFbsIC2WgPR7XOfFJUWfJr2Vnm1rgnCvTwmMNu XCsy/4sjaeMrwMwfFZben16GraV3keZROFTVJeKdvnYsNJ7aUhrU+8EaHO3cuMM24y2c RsIKcJLZvadeWs34wRit9i2CoCutYZCzQZHgAxu0yHt8wnsKCFk0O8hs9MLQsEfThcoW R/SAdU9Dwlvk9PoRZgia/sWXuQwmdX9684CiwHxbFDSCf1vqA/L/kfyiMtKDElmZ/h2D mHSoEWZDt2Al96J5auTR+hreNK4nfpHbMDqNC5JiJEmyXNlFlQIedyL+CFM06y/TTztI o0/w==
MIME-Version: 1.0
X-Received: by 10.194.240.169 with SMTP id wb9mr15738886wjc.90.1373408536023; Tue, 09 Jul 2013 15:22:16 -0700 (PDT)
Received: by 10.217.38.138 with HTTP; Tue, 9 Jul 2013 15:22:15 -0700 (PDT)
In-Reply-To: <51DC7F87.6060503@gmail.com>
References: <51DC0F95.7010407@gmail.com> <hf8ot8hnpa93pi3t54c4d5qcc3p5tnb3ca@hive.bjoern.hoehrmann.de> <CAK3OfOgTNaLpRthrRcU4Bo+3z1aXUOOn0Ord7RBPN8z6TtiiWw@mail.gmail.com> <51DC7F87.6060503@gmail.com>
Date: Tue, 9 Jul 2013 17:22:15 -0500
Message-ID: <CAK3OfOgCrrE5XW7hBL15JD+WJ=X-Q9+PPs=aZLmc8XJtuS57Og@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: "Peter F. Patel-Schneider" <pfpschneider@gmail.com>
Content-Type: text/plain; charset=UTF-8
Cc: Bjoern Hoehrmann <derhoermi@gmx.net>, json@ietf.org
Subject: Re: [Json] Limitations on number size?
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: Tue, 09 Jul 2013 22:22:27 -0000

On Tue, Jul 9, 2013 at 4:24 PM, Peter F. Patel-Schneider
<pfpschneider@gmail.com> wrote:
> So that is how I came up with JSON numbers being IEEE floating point double.
>
> Imagine my surprise when I was told that my reasoning was not correct.

A great many participants on this list (since its very recent
inception) have been surprised, myself included, by many oddities.  It
should no longer surprise any of us that others are surprised by these
things :)

Nico
--