| Deutsch English Français Italiano |
|
<87iknw7sz8.fsf@nosuchdomain.example.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: Integral types and own type definitions (was Re: Suggested method for returning a string from a C program?)
Date: Tue, 25 Mar 2025 13:31:07 -0700
Organization: None to speak of
Lines: 30
Message-ID: <87iknw7sz8.fsf@nosuchdomain.example.com>
References: <vrd77d$3nvtf$2@dont-email.me> <868qp1ra5f.fsf@linuxsc.com>
<vrdhok$47cb$2@dont-email.me> <20250319115550.0000676f@yahoo.com>
<vreuj1$1asii$4@dont-email.me> <vreve4$19klp$2@dont-email.me>
<20250319201903.00005452@yahoo.com> <86r02roqdq.fsf@linuxsc.com>
<vrh1br$35029$2@dont-email.me> <LRUCP.2$541.0@fx47.iad>
<vrh71t$3be42$1@dont-email.me> <KFVCP.594649$SZca.498578@fx13.iad>
<vrhb77$3frk8$1@dont-email.me> <vrru8f$174q6$1@dont-email.me>
<86o6xpk8sn.fsf@linuxsc.com> <vrtmu4$2s1q2$1@dont-email.me>
<20250325011327.41@kylheku.com> <20250325131110.000056bd@yahoo.com>
<86bjtpjp22.fsf@linuxsc.com> <vruid4$3iuvq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Tue, 25 Mar 2025 21:31:08 +0100 (CET)
Injection-Info: dont-email.me; posting-host="7cb379057f60c5676f5334e6c65b06bf";
logging-data="89421"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/x4zpiV755IF6Vh5Y+LPXS"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:zlwi4a0mWGYWaqm/79OQGsO+roM=
sha1:hLTCsK0DHZ4bLfUMmVbBKqfmlVs=
David Brown <david.brown@hesbynett.no> writes:
[...]
> "Everyday English" does not cover negative numbers at all - in
> "everyday English", "integer" and "whole number" are basically
> synonymous and mean 1, 2, 3, etc.
Perhaps I don't speak everyday English.
Most people probably rarely use the word "integer". When they do,
if they use it correctly, they use it to refer to the set of numbers
with no fractional part, which can be positive, zero, or negative.
I've never heard the word "integer" used in a way that excludes
negative numbers.
The way I was taught in elementary school:
The integers are ..., -2, -1, 0, 1, 2 ...
The natural numbers are 1, 2, ...
The whole numbers are 0, 1, 2, ...
There isn't universal agreement on whether the natural and/or whole
numbers include 0. Ada, for example, has a subtype Natural whose lower
bound is 0 (Positive starts at 1), which was very slightly jarring when
I first encountered it.
[...]
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */