comp.lang.ada
 help / color / mirror / Atom feed
* Natural data type ?
@ 2002-03-27  2:13 Peter I. Hansen
  2002-03-27  2:57 ` Chad R. Meiners
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Peter I. Hansen @ 2002-03-27  2:13 UTC (permalink / 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




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-03-29 16:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-27  2:13 Natural data type ? Peter I. Hansen
2002-03-27  2:57 ` 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

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