W3C home > Mailing lists > Public > ietf-http-wg@w3.org > January to March 2020

Re: draft-ietf-httpbis-header-structure-15, Serializing a Decimal

From: Julian Reschke <julian.reschke@gmx.de>
Date: Wed, 29 Jan 2020 19:41:20 +0100
To: Kari Hurtta <hurtta-ietf@elmme-mailer.org>, HTTP Working Group <ietf-http-wg@w3.org>
Cc: Mark Nottingham <mnot@mnot.net>, Poul-Henning Kamp <phk@varnish-cache.org>
Message-ID: <c57f5766-08ee-79a2-8149-c273eabd6a26@gmx.de>
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...?

Best regards, Julian
Received on Wednesday, 29 January 2020 18:41:32 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 29 January 2020 18:41:34 UTC