Re: [netmod] Justification for decimal64 over string for floating point values in geo location data?

Carsten Bormann <cabo@tzi.org> Wed, 08 July 2020 17:46 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 080C73A03FA for <netmod@ietfa.amsl.com>; Wed, 8 Jul 2020 10:46:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=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 Qz6tdWcflj4h for <netmod@ietfa.amsl.com>; Wed, 8 Jul 2020 10:46:00 -0700 (PDT)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 642A53A03F2 for <netmod@ietf.org>; Wed, 8 Jul 2020 10:45:58 -0700 (PDT)
Received: from [192.168.217.116] (p5089ae91.dip0.t-ipconnect.de [80.137.174.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4B26D31HgdzyWt; Wed, 8 Jul 2020 19:45:55 +0200 (CEST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <20200708173218.o24s3ls64s37hwrj@anna.jacobs.jacobs-university.de>
Date: Wed, 8 Jul 2020 19:45:54 +0200
Cc: "Rob Wilton (rwilton)" <rwilton@cisco.com>, NetMod WG <netmod@ietf.org>
X-Mao-Original-Outgoing-Id: 615923154.44024-af061ccc5b886ebc25a3845cd587280f
Content-Transfer-Encoding: quoted-printable
Message-Id: <910E2269-4B23-4813-8D64-E60965DCAB99@tzi.org>
References: <B548C4B4-2A97-4736-A6B2-358D1491D125@chopps.org> <20200707112450.wrttuprwrdr3nl5i@anna.jacobs.jacobs-university.de> <MN2PR11MB43660673154F85137B23C03BB5670@MN2PR11MB4366.namprd11.prod.outlook.com> <20200708164412.qbstkblscn4yxis6@anna.jacobs.jacobs-university.de> <MN2PR11MB4366A8C7ABA6A38496040DF1B5670@MN2PR11MB4366.namprd11.prod.outlook.com> <20200708173218.o24s3ls64s37hwrj@anna.jacobs.jacobs-university.de>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
X-Mailer: Apple Mail (2.3608.80.23.2.2)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/yS_JG6LO5V-4mBumUMKgArkGppc>
Subject: Re: [netmod] Justification for decimal64 over string for floating point values in geo location data?
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 08 Jul 2020 17:46:05 -0000

On 2020-07-08, at 19:32, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote:
> 
> type string;
>   pattern "[0-9]+(\.[0-9]+)?";
> 
> means unknown precision - everybody implements what seems convenient.

It also means that there is no way to convert this text string into a number when using YANG-CBOR.

Grüße, Carsten