- From: Julian Reschke <julian.reschke@gmx.de>
- Date: Thu, 30 Jan 2020 06:52:11 +0100
- To: Mark Nottingham <mnot@mnot.net>
- Cc: Kari Hurtta <hurtta-ietf@elmme-mailer.org>, HTTP Working Group <ietf-http-wg@w3.org>, Poul-Henning Kamp <phk@varnish-cache.org>
On 29.01.2020 23:22, Mark Nottingham wrote: > > >> On 30 Jan 2020, at 5:41 am, Julian Reschke <julian.reschke@gmx.de> wrote: >> >> On 29.01.2020 19:17, Kari Hurtta wrote: >>> 4.1.5. Serializing a Decimal >>> https://tools.ietf.org/html/draft-ietf-httpbis-header-structure-15#section-4.1.5 >>> >>> >>> | Given a decimal_number as input_decimal, return an ASCII string >>> | suitable for use in a HTTP header value. >>> | >>> | 1. Let output be an empty string. >>> | >>> | 2. If input_decimal is less than (but not equal to) 0, append "-" to >>> | output. >>> | >>> | 3. Append input_decimal's integer component represented in base 10 >>> | (using only decimal digits) to output; if it is zero, append "0". >>> ... >> >> That seems to assume that the integer component always is positive...? > > How so? Is "using only decimal digits" unclear? That part is clear. But what guarantees that the integer component is positive? That might be easily fixable by saying "the absolute value of...". Best regards, Julian
Received on Thursday, 30 January 2020 05:52:25 UTC