Re: [MMUSIC] ptime and maxptime ABNF

Harald Alvestrand <harald@alvestrand.no> Mon, 30 March 2015 04:26 UTC

Return-Path: <harald@alvestrand.no>
X-Original-To: mmusic@ietfa.amsl.com
Delivered-To: mmusic@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 45AC31A8F48 for <mmusic@ietfa.amsl.com>; Sun, 29 Mar 2015 21:26:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.81
X-Spam-Level:
X-Spam-Status: No, score=-2.81 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01] 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 9UgfWs4MAyK5 for <mmusic@ietfa.amsl.com>; Sun, 29 Mar 2015 21:26:20 -0700 (PDT)
Received: from mork.alvestrand.no (mork.alvestrand.no [158.38.152.117]) by ietfa.amsl.com (Postfix) with ESMTP id 5163D1A8F44 for <mmusic@ietf.org>; Sun, 29 Mar 2015 21:26:20 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mork.alvestrand.no (Postfix) with ESMTP id BE1D47C55A0; Mon, 30 Mar 2015 06:26:18 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at alvestrand.no
Received: from mork.alvestrand.no ([127.0.0.1]) by localhost (mork.alvestrand.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7_tRxsxjgkx1; Mon, 30 Mar 2015 06:26:17 +0200 (CEST)
Received: from [IPv6:2001:470:de0a:27:8d54:322b:45f1:74a0] (unknown [IPv6:2001:470:de0a:27:8d54:322b:45f1:74a0]) by mork.alvestrand.no (Postfix) with ESMTPSA id BC1B47C54E0; Mon, 30 Mar 2015 06:26:17 +0200 (CEST)
Message-ID: <5518D069.40404@alvestrand.no>
Date: Mon, 30 Mar 2015 06:26:17 +0200
From: Harald Alvestrand <harald@alvestrand.no>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: Adam Roach <adam@nostrum.com>, mmusic@ietf.org
References: <5512D5F9.9010209@nostrum.com> <55157C59.4020504@alvestrand.no> <551580CD.7040803@nostrum.com>
In-Reply-To: <551580CD.7040803@nostrum.com>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/mmusic/knCq2Q4k8yc8mM0bE5YDDQVyyFk>
Subject: Re: [MMUSIC] ptime and maxptime ABNF
X-BeenThere: mmusic@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Multiparty Multimedia Session Control Working Group <mmusic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mmusic>, <mailto:mmusic-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/mmusic/>
List-Post: <mailto:mmusic@ietf.org>
List-Help: <mailto:mmusic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mmusic>, <mailto:mmusic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Mar 2015 04:26:22 -0000

Den 27. mars 2015 17:09, skrev Adam Roach:
> On 3/27/15 10:50, Harald Alvestrand wrote:
>> Nit: if you want to allow 0.030...
> 
> I don't. Do you?
> 
> /a

Well... in the hierarchy of constituencies, I regard software developers
as more important than standards developers (and users higher than either).

If 0.030 is allowed, I can generate it as

printf("%.3", number).

If 0.030 is not allowed, I have to generate it as

buffer=sprintf("%.3", number);
while (buffer(buffer.end) == '0') {
  buffer.end--;
}
print buffer

OTOH, this is all moot if nobody needs fractions.