comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <dont.bother.mcondic.auntie.spam@[acm.org>
Subject: Re: Natural data type ?
Date: Wed, 27 Mar 2002 09:25:36 -0500
Date: 2002-03-27T14:25:37+00:00	[thread overview]
Message-ID: <a7skp1$cee$1@nh.pace.co.uk> (raw)
In-Reply-To: 3CA12AD4.2030807@oek.dk

I've often wondered this myself. What Ada calls "Natural" numbers are what
used to be called "Whole" numbers when I was learning The New Math. What Ada
calls "Positive" would have been called "Natural" back then too. I don't
know if this is some version of "The All New And More Improved Math" or if
it was just some mistake that got institutionalized & now we're stuck with
it.

The secret is not to take the names too seriously - just understand what
they give you and work with it...

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com


"Peter I. Hansen" <pih@oek.dk> wrote in message
news:3CA12AD4.2030807@oek.dk...
> 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
>





  parent reply	other threads:[~2002-03-27 14:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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