From: Preben Randhol <randhol@pvv.org>
Subject: Re: fixed type (delta) in ada
Date: 1999/11/28
Date: 1999-11-28T15:34:14+00:00 [thread overview]
Message-ID: <m3zovy3a0n.fsf@kiuk0156.chembio.ntnu.no> (raw)
In-Reply-To: 38409C87.69EC865@easystreet.com
Al Christians <achrist@easystreet.com> writes:
| Robert Dewar wrote:
| > No, the output should be 71.3, and this is what is expected.
|
| So, why does GNAT 3.12p give 68.55?
I also got 68.55 on GNAT 3.12p on a Redhat 6.1 Linux system.
Btw. after using the other solution which gave 70.2, I noticed that
if I changed the numbers so I got a product like: 80.3198 (on a
calculator) it was given as 80.31. This is expected, but how does one
get Ada to round off the value 80.3198 to 80.32?
--
Preben Randhol "Marriage is when you get to keep
[randhol@pvv.org] your girl and don't have to give
[http://www.pvv.org/~randhol/] her back to her parents." (Eric, 6)
next prev parent reply other threads:[~1999-11-28 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 Nick Roberts
1999-11-30 0:00 ` Simon Wright
1999-11-28 0:00 ` 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 [this message]
1999-11-29 0:00 ` Robert Dewar
1999-11-29 0:00 ` Al Christians
1999-11-29 0:00 ` Lutz Donnerhacke
1999-11-29 0:00 ` Preben Randhol
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox