comp.lang.ada
 help / color / mirror / Atom feed
From: lutz@iks-jena.de (Lutz Donnerhacke)
Subject: Re: fixed type (delta) in ada
Date: 1999/11/29
Date: 1999-11-29T00:00:00+00:00	[thread overview]
Message-ID: <slrn8458hv.18l.lutz@taranis.iks-jena.de> (raw)
In-Reply-To: 3842A11A.6833A317@easystreet.com

* Al Christians wrote:
>   F : Long_Float := 0.0300000000000000;  

First convertion. Might be 0.0300001244 afterwards.

>   Money_Io.Put(Money(F));                   -- GNAT 3.12p Puts 0.03

Second convertion.

>   Money_Io.Put(Money(0.0300000000000000));  -- GNAT 3.12p Puts 0.02 

A single convertion.

>I suppose that 0.02 and 0.03 are each allowed, but I find the
>inconsistency a little unexpected.

Of course. Playing near T'Small is hazardous.




  reply	other threads:[~1999-11-29  0:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-27  0:00 fixed type (delta) in ada Nap
1999-11-26  0:00 ` Al Christians
1999-11-27  0:00   ` fixed type (delta) in ada and GNAT bug David C. Hoos, Sr.
1999-11-28  0:00 ` fixed type (delta) in ada Robert Dewar
1999-11-27  0:00   ` Al Christians
1999-11-28  0:00     ` Florian Weimer
1999-11-28  0:00       ` Al Christians
1999-11-29  0:00         ` Preben Randhol
1999-11-29  0:00           ` Al Christians
1999-11-29  0:00             ` Preben Randhol
1999-11-28  0:00     ` Preben Randhol
1999-11-29  0:00     ` Robert Dewar
1999-11-29  0:00       ` Al Christians
1999-11-29  0:00         ` Lutz Donnerhacke [this message]
1999-11-29  0:00           ` Preben Randhol
1999-11-28  0:00 ` Nick Roberts
1999-11-30  0:00   ` Simon Wright
replies disabled

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