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

> 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?


--
Mark Nottingham   https://www.mnot.net/

Received on Wednesday, 29 January 2020 22:22:46 UTC