|
From: | Paul Eggert |
Subject: | Re: [PATCH] doc: clarify integer requirements in some functions |
Date: | Sat, 12 Feb 2022 00:35:46 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 |
On 2/12/22 00:28, Mike Frysinger wrote:
These functions do not accept decimal values with fractional parts. Describe them in terms of integers to clarify.
I dunno, those values all must be integers by their nature so saying "integer" in the doc doesn't help much; conversely, if the doc omits the word "decimal" people might think the numbers could be octal or hex.
Although we could uniformly replace "decimal" with "nonnegative decimal integer without excess leading zeros" that would be overkill. Perhaps we could just add a sentence somewhere saying "By 'integer' we mean 'nonnegative decimal integer without excess leading zeros'" and leave the rest of the doc as-is.
[Prev in Thread] | Current Thread | [Next in Thread] |