Sujet : Re: Integral types and own type definitions (was Re: Suggested method for returning a string from a C program?)
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.cDate : 25. Mar 2025, 21:41:55
Autres entêtes
Organisation : None to speak of
Message-ID : <87a5987sh8.fsf@nosuchdomain.example.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
User-Agent : Gnus/5.13 (Gnus v5.13)
Janis Papanagnou <janis_papanagnou+
ng@hotmail.com> writes:
On 25.03.2025 12:11, Michael S wrote:
[...]
Wouldn't the term 'whole numbers' be preferred in everyday English?
>
If I speak about numbers I name them so; "numbers", "whole numbers",
"integer numbers", "real numbers" (not "floating point numbers").
Sometimes, depending on context, I use the term "scalar". When I'm
speaking about "integral types" I don't restrict that term to numbers.
Real numbers and floating-point numbers have different meanings, both in
C and in general.
In C, both integer and floating-point types are "real" (as opposed
to complex or imaginary), though I consider this use of "real" to
be a bit obscure. Ada has distinct floating-point and fixed-point
types, which together are real types.
-- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.comvoid Void(void) { Void(); } /* The recursive call of the void */