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

Carsten Bormann <cabo@tzi.org> Mon, 19 May 2014 22:54 UTC

Return-Path: <cabo@tzi.org>
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 1A9981A0436 for <json@ietfa.amsl.com>; Mon, 19 May 2014 15:54:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.551
X-Spam-Level:
X-Spam-Status: No, score=-1.551 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_DE=0.35, SPF_HELO_PASS=-0.001] autolearn=no
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 VPyXFP3RVijy for <json@ietfa.amsl.com>; Mon, 19 May 2014 15:54:56 -0700 (PDT)
Received: from informatik.uni-bremen.de (mailhost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 45B2F1A03E0 for <json@ietf.org>; Mon, 19 May 2014 15:54:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de
Received: from smtp-fb3.informatik.uni-bremen.de (smtp-fb3.informatik.uni-bremen.de [134.102.224.120]) by informatik.uni-bremen.de (8.14.5/8.14.5) with ESMTP id s4JMsiqZ016612; Tue, 20 May 2014 00:54:44 +0200 (CEST)
Received: from [192.168.217.145] (p54893C54.dip0.t-ipconnect.de [84.137.60.84]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp-fb3.informatik.uni-bremen.de (Postfix) with ESMTPSA id DF33413EB; Tue, 20 May 2014 00:54:43 +0200 (CEST)
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <CF9FCEC9.4A4E7%jhildebr@cisco.com>
Date: Tue, 20 May 2014 00:54:42 +0200
X-Mao-Original-Outgoing-Id: 422232882.54739-0fb47b88cc1b5f394623eb1e70ccd2a2
Content-Transfer-Encoding: quoted-printable
Message-Id: <488AE66E-725D-40B3-9FDA-ADA1018BCF65@tzi.org>
References: <535EB3BF.8080606@cisco.com> <CAHBU6ivjF9ULW0yGSVdJi2D6QgUThuhym_ZhpgLM=cvLu=mAiQ@mail.gmail.com> <CF841AAE.47D86%jhildebr@cisco.com> <CAHBU6itK5HtSTPWSsHsHUPja90emqU86LsgjrBorkqcUDivS2A@mail.gmail.com> <CF87EB9C.48BB0%jhildebr@cisco.com> <537A5BE0.3020406@cisco.com> <CF9FCEC9.4A4E7%jhildebr@cisco.com>
To: "Joe Hildebrand (jhildebr)" <jhildebr@cisco.com>
X-Mailer: Apple Mail (2.1878.2)
Archived-At: http://mailarchive.ietf.org/arch/msg/json/HjNd-L0PJ_yFQrfBwhsVJPoi0cE
Cc: IETF JSON WG <json@ietf.org>, "Matt Miller \(mamille2\)" <mamille2@cisco.com>
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, 19 May 2014 22:54:57 -0000

On 20 May 2014, at 00:00, Joe Hildebrand (jhildebr) <jhildebr@cisco.com> wrote:

> 4e-324

That is a bad number for interop not because it is out of range, but because it is not something you can get from converting a binary64 into decimal, so it is somewhat arbitrary what happens on the way back.

I would be surprised if there are actual interop problems with 5e-324.
Consequently, I don’t quite buy a range limit at 1e-308 yet.
(It’s a precision limit, in any case.)

Grüße, Carsten