Liste des Groupes | Revenir à cl c |
David Brown <david.brown@hesbynett.no> writes:Agreed. (To be clear here - I have not asked "most people", so I can't claim good statistical evidence for any of this.)
[...]"Everyday English" does not cover negative numbers at all - inPerhaps I don't speak everyday English.
"everyday English", "integer" and "whole number" are basically
synonymous and mean 1, 2, 3, etc.
Most people probably rarely use the word "integer".
When they do,Sure. But most people have forgotten such details long ago - negative numbers are not part of daily life (except as an indicator of how much you owe the bank...). After all, negative numbers are not natural!
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 wholeThe most relevant for most languages is whether array indices start at 0 or 1, and I have always understood that it varies - thus you have to know where you stand in a given language. Perhaps learning to program in BASIC - with its wildly inconsistent variations - wasn't /entirely/ harmful :-)
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.
Les messages affichés proviennent d'usenet.