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

Don Fedyk <dfedyk@labn.net> Thu, 09 July 2020 12:19 UTC

Return-Path: <dfedyk@labn.net>
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 F0CE33A0928 for <netmod@ietfa.amsl.com>; Thu, 9 Jul 2020 05:19:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (768-bit key) header.d=labn.net
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 E4vjqYgoHVht for <netmod@ietfa.amsl.com>; Thu, 9 Jul 2020 05:19:26 -0700 (PDT)
Received: from gproxy4-pub.mail.unifiedlayer.com (gproxy4-pub.mail.unifiedlayer.com [69.89.23.142]) (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 86B983A090D for <netmod@ietf.org>; Thu, 9 Jul 2020 05:19:26 -0700 (PDT)
Received: from cmgw11.unifiedlayer.com (unknown [10.9.0.11]) by gproxy4.mail.unifiedlayer.com (Postfix) with ESMTP id A356E175FD6 for <netmod@ietf.org>; Thu, 9 Jul 2020 06:19:15 -0600 (MDT)
Received: from box313.bluehost.com ([69.89.31.113]) by cmsmtp with ESMTP id tVWFjCpM7pSV4tVWFjj4oU; Thu, 09 Jul 2020 06:19:15 -0600
X-Authority-Reason: nr=8
X-Authority-Analysis: v=2.3 cv=a4QeC3aF c=1 sm=1 tr=0 a=h1BC+oY+fLhyFmnTBx92Jg==:117 a=h1BC+oY+fLhyFmnTBx92Jg==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=kj9zAlcOel0A:10:nop_charset_1 a=_RQrkK6FrEwA:10:nop_rcvd_month_year a=Vy_oeq2dmq0A:10:endurance_base64_authed_username_1 a=j3Z76cjpAAAA:8 a=48vgC7mUAAAA:8 a=JCZVFY36xXd3nUSI-5gA:9 a=CjuIK1q_8ugA:10:nop_charset_2 a=FvgKqOQ44qUA:10:phone_number_3 a=JrSEOxZJtCQA:10:phone_number_3 a=-RoEEKskQ1sA:10:nop_election2020_name_body a=9ZYBcOd_X9kS2t7VFny2:22 a=w1C3t2QeGrPiZgrLijVG:22
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=labn.net; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:Subject:In-Reply-To:References:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=R55xHZ+iwvaIzC6E7APN6ylcwQue47lsC65Mfbdkz7E=; b=EHqI1U8PTLCjrwfw99eYLnMaqX 0grZ7zBv0JY6xPo5x2cHrXYIZInkPN7M/W0bi2kSJlL0SpnFIciOHNpCKMtwu2rFQhksBmJCJIjr+ T+jGB4VejRJETOQ3mNLqvJRYq;
Received: from pool-173-48-105-206.bstnma.fios.verizon.net ([173.48.105.206]:53410 helo=FedykLabn) by box313.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from <dfedyk@labn.net>) id 1jtVWF-000Sl2-49; Thu, 09 Jul 2020 06:19:15 -0600
From: "Don Fedyk" <dfedyk@labn.net>
To: "'Rob Wilton \(rwilton\)'" <rwilton=40cisco.com@dmarc.ietf.org>, "'Juergen Schoenwaelder'" <j.schoenwaelder@jacobs-university.de>
Cc: "'NetMod WG'" <netmod@ietf.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> <MN2PR11MB436684083586D889151223FDB5640@MN2PR11MB4366.namprd11.prod.outlook.com>
In-Reply-To: <MN2PR11MB436684083586D889151223FDB5640@MN2PR11MB4366.namprd11.prod.outlook.com>
Date: Thu, 9 Jul 2020 08:19:11 -0400
Message-ID: <00c401d655eb$28bfeaf0$7a3fc0d0$@labn.net>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQKBnaSHs494lqZkfHTaBcZ5s3/T1wE9AcQ8AaOvFckC1DrSygI6XDoQAa2NP2ECDy6HnqdLOHQA
Content-Language: en-us
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - box313.bluehost.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - labn.net
X-BWhitelist: no
X-Source-IP: 173.48.105.206
X-Source-L: No
X-Exim-ID: 1jtVWF-000Sl2-49
X-Source:
X-Source-Args:
X-Source-Dir:
X-Source-Sender: pool-173-48-105-206.bstnma.fios.verizon.net (FedykLabn) [173.48.105.206]:53410
X-Source-Auth: dfedyk@labn.net
X-Email-Count: 2
X-Source-Cap: bGFibm1vYmk7bGFibm1vYmk7Ym94MzEzLmJsdWVob3N0LmNvbQ==
X-Local-Domain: yes
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/P7SVSD-iVrMLnz5ybQ1FxSI0xK0>
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: Thu, 09 Jul 2020 12:19:28 -0000

+1
(Definitely too many numeric types encoded as strings ) Don

[RW] 

Ah, Okay.  Yes, I agree.  I think that there are already too many types that
get encoded as a string in YANG.

My suggestion was to consider for the next version of YANG to potentially
add two new native YANG types:
 - Binary float and binary double native YANG types, possibly restricted to
operational values only.
 - A new arbitrary-precision-decimal native YANG type.

Regards,
Rob


> 
> /js
> 
> --
> Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>

_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod