Re: [Json] I-JSON Topic #5: Numbers

"Joe Hildebrand (jhildebr)" <jhildebr@cisco.com> Mon, 28 April 2014 20:52 UTC

Return-Path: <jhildebr@cisco.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4C0331A7D82 for <json@ietfa.amsl.com>; Mon, 28 Apr 2014 13:52:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.552
X-Spam-Level:
X-Spam-Status: No, score=-14.552 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, J_CHICKENPOX_12=0.6, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.651, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VK0vmiqtY2UT for <json@ietfa.amsl.com>; Mon, 28 Apr 2014 13:52:39 -0700 (PDT)
Received: from rcdn-iport-7.cisco.com (rcdn-iport-7.cisco.com [173.37.86.78]) by ietfa.amsl.com (Postfix) with ESMTP id 345E21A70FD for <json@ietf.org>; Mon, 28 Apr 2014 13:52:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1360; q=dns/txt; s=iport; t=1398718357; x=1399927957; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=2gn7I/T9smmrTbt8jm/1mjPqLUK5FNomznNaMTsUzoA=; b=B2AUBzJwecfWMsGzetoDXEXuIdCDHtSo00zSYbQKQAFjmNvJRkaWrAfe OgmEb7yyGkAnDu03nniRjLiLwR9a9rQ3PZLKMO1qX8LTtLbC2l5dWZUzT QA8BtfPbTiljsBdd41LXfHqCs35/V54/PyDZ1RKQ5i7QLIHroL/93jX7j c=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AhYFAAe/XlOtJV2c/2dsb2JhbABZgwaBJoJlwgUZgQIWdIIlAQEBBCMRRRACAQgOCgICJgICAjAVEAIEAQ0FiEGlEKM+F4EpjH0zB4JvgUoBA5kMkl6DMYIr
X-IronPort-AV: E=Sophos;i="4.97,946,1389744000"; d="scan'208";a="320979971"
Received: from rcdn-core-5.cisco.com ([173.37.93.156]) by rcdn-iport-7.cisco.com with ESMTP; 28 Apr 2014 20:52:37 +0000
Received: from xhc-aln-x04.cisco.com (xhc-aln-x04.cisco.com [173.36.12.78]) by rcdn-core-5.cisco.com (8.14.5/8.14.5) with ESMTP id s3SKqcBn005746 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 28 Apr 2014 20:52:38 GMT
Received: from xmb-rcd-x10.cisco.com ([169.254.15.104]) by xhc-aln-x04.cisco.com ([173.36.12.78]) with mapi id 14.03.0123.003; Mon, 28 Apr 2014 15:52:37 -0500
From: "Joe Hildebrand (jhildebr)" <jhildebr@cisco.com>
To: Tim Bray <tbray@textuality.com>, "Matt Miller (mamille2)" <mamille2@cisco.com>
Thread-Topic: [Json] I-JSON Topic #5: Numbers
Thread-Index: AQHPYxzPc1qOL3zAFk6QxZ1T0YrJO5snzN0A//+jtwA=
Date: Mon, 28 Apr 2014 20:52:36 +0000
Message-ID: <CF841AAE.47D86%jhildebr@cisco.com>
References: <535EB3BF.8080606@cisco.com> <CAHBU6ivjF9ULW0yGSVdJi2D6QgUThuhym_ZhpgLM=cvLu=mAiQ@mail.gmail.com>
In-Reply-To: <CAHBU6ivjF9ULW0yGSVdJi2D6QgUThuhym_ZhpgLM=cvLu=mAiQ@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/14.4.1.140326
x-originating-ip: [10.129.24.156]
Content-Type: text/plain; charset="utf-8"
Content-ID: <59DF344F89D00E439C83222CE5986383@emea.cisco.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/json/0OvLuVZZew4jT0ZqaLB4gNhHFFk
Cc: IETF JSON WG <json@ietf.org>
Subject: Re: [Json] I-JSON Topic #5: Numbers
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.15
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: Mon, 28 Apr 2014 20:52:44 -0000

Will we need to talk about subnormals, -0, NaN, Infinity, and the like?


On 4/28/14, 2:22 PM, "Tim Bray" <tbray@textuality.com> wrote:

>It occurs to me that it would be super-useful for the draft to include
>explanation of how to follow this rule, including examples of printf and
>Java format strings.
>
>
>
>On Mon, Apr 28, 2014 at 1:02 PM, Matt Miller
><mamille2@cisco.com> wrote:
>
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA512
>
>"draft-i-json-01 says that you MUST not put in a string representing a
>number with greater precision/magnitude than IEEE754 doubles can
>support.   I think this is a good idea but I'm a little nervous
>because I?ve never written the code; if this is unreasonably hard at
>either the sending or receiving end someone should say so."
>
>If you have suggestions for better text -- or other comments/concerns
>on this language -- please respond to this thread with your
>suggestions or reasoning.


-- 
Joe Hildebrand