comp.lang.ada
 help / color / mirror / Atom feed
From: "Peter I. Hansen" <pih@oek.dk>
Subject: Natural data type ?
Date: Wed, 27 Mar 2002 03:13:40 +0100
Date: 2002-03-27T03:13:40+01:00	[thread overview]
Message-ID: <3CA12AD4.2030807@oek.dk> (raw)

Hello

I'm new to Ada and I'm reading a book by Feldman & Koffman.
Now I see that the datatype 'Natural' is the integers {0,1,2,3,4,...}, 
and type Positive is {1,2,3,4,5,....}. I know this is all akademic, but 
why this definition.
We learn in mathematics that the natural numbers are positive integers 
not including zero..., So to me the 'Natural' way of defining these 
datatypes would be :

Natural :  {1,2,3,4,5, ... }
Positive : {0,1,2,3,4, ... }

Am I all wrong here or have I stumbled across a misprint ???

/Peter




             reply	other threads:[~2002-03-27  2:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-27  2:13 Peter I. Hansen [this message]
2002-03-27  2:57 ` Natural data type ? Chad R. Meiners
2002-03-27 23:18   ` Peter I. Hansen
2002-03-28  3:55     ` Chad R. Meiners
2002-03-28 15:40       ` Marin David Condic
2002-03-28 16:47       ` Peter I. Hansen
2002-03-27 14:25 ` Marin David Condic
2002-03-28 16:45   ` Peter I. Hansen
2002-03-28 16:30 ` Georg Bauhaus
2002-03-28 16:42   ` Peter I. Hansen
2002-03-28 18:33     ` Darren New
2002-03-29 16:19     ` Georg Bauhaus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox