Sujet : Re: Integral types and own type definitions (was Re: Suggested method for returning a string from a C program?)
De : rjh (at) *nospam* cpax.org.uk (Richard Heathfield)
Groupes : comp.lang.cDate : 25. Mar 2025, 18:34:51
Autres entêtes
Organisation : Fix this later
Message-ID : <vrupfr$3ofsj$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
User-Agent : Mozilla Thunderbird
On 25/03/2025 17:09, Michael S wrote:
On Tue, 25 Mar 2025 05:02:45 -0700
Tim Rentsch <tr.17687@z991.linuxsc.com> wrote:
Michael S <already5chosen@yahoo.com> writes:
<snip>
Wouldn't the term 'whole numbers' be preferred in everyday English?
>
"Whole numbers" are all non-negative.
>
"Integers" include values less than zero.
Thank you.
Sounds like English everyday use differs from two other languages that
I know relatively well in both of which "whole" numbers include
negatives.
...English being one of them.
Wiktionary offers "integer", and the Cambridge Dictionary "a number, such as 1, 3, or 17, that has no fractions and no digits after the decimal point".
The OED gives us "Of a number: equal to one or to a sum consisting of one added to itself a certain number of times; (also) equal to the negative of such a number or to zero; = integral adj. A.4a. Esp. in whole number."
Wolfram is ambivalent on the matter: "One of the numbers 1, 2, 3, ... (OEIS A000027), also called the counting numbers or natural numbers. 0 is sometimes included in the list of "whole" numbers (Bourbaki 1968, Halmos 1974), but there seems to be no general agreement. Some authors also interpret "whole number" to mean "a number having fractional part of zero," making the whole numbers equivalent to the integers" and goes on to recommend various flavours of integer instead.
-- Richard HeathfieldEmail: rjh at cpax dot org dot uk"Usenet is a strange place" - dmr 29 July 1999Sig line 4 vacant - apply within