comp.lang.ada
 help / color / mirror / Atom feed
From: "Clueless" <chris@dont.spam.me>
Subject: RE: Naturals and discrete types
Date: Thu, 01 Nov 2001 23:20:36 GMT
Date: 2001-11-01T23:20:36+00:00	[thread overview]
Message-ID: <8NkE7.221689$K6.106569186@news2> (raw)
In-Reply-To: mailman.1004656086.22510.comp.lang.ada@ada.eu.org

In article <mailman.1004656086.22510.comp.lang.ada@ada.eu.org>, "Beard,
Frank" <beardf@spawar.navy.mil> wrote:

> -----Original Message-----
> From: Clueless [mailto:chris@dont.spam.me]
> 
>> However, I'm still a little fuzzy on the best way to convert between
>> real and discrete types.
> 
>       I : integer := 0;
>       Y : float := 3.14;
>    begin
>       I := integer(Y);  -- now I = 3;
> 
> 
> or
> 
>       I : integer := 9;
>       Y : float := 0.0;
>    begin
>       Y := float(I);  -- now Y ~ 9.0;

Everything is so damn simple isnt it? ;->

And I remember covering this subject early on in my textbook.
I'm a typical greenhorn I guess, making everything more complicated than
it has to be.

Thanks for your patience.

Clueless
chris@dont.spam.me



  reply	other threads:[~2001-11-01 23:20 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-01 23:06 Naturals and discrete types Beard, Frank
2001-11-01 23:20 ` Clueless [this message]
2001-11-02  3:05   ` DuckE
  -- strict thread matches above, loose matches on Subject: below --
2001-11-01 22:05 Clueless
2001-11-01 22:35 ` Matthew Heaney
2001-11-01 22:59 ` Clueless
2001-11-02 15:05   ` Marin David Condic
2001-11-02 17:24 ` Ted Dennison
2001-11-02 18:19   ` Preben Randhol
2001-11-02 18:51     ` Marin David Condic
2001-11-03 18:01       ` Nick Roberts
2001-11-04  4:18         ` tmoran
2001-11-05 15:29           ` Marin David Condic
2001-11-04 11:39       ` Preben Randhol
2001-11-05  2:01         ` Clueless
2001-11-05  2:37           ` Larry Kilgallen
replies disabled

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