From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: How to round to the nearest fixed-point value?
Date: Thu, 23 Jan 2014 10:42:56 +0100
Date: 2014-01-23T10:42:56+01:00 [thread overview]
Message-ID: <52e0e420$0$6570$9b4e6d93@newsspool4.arcor-online.net> (raw)
In-Reply-To: <lbq9c0$7sd$1@dont-email.me>
On 23.01.14 06:29, J-P. Rosen wrote:
> Le 22/01/2014 23:45, adambeneschan@gmail.com a écrit :
>>> 1.00
>>>> 0.99
>> I'm pretty sure this is a compiler bug.
>
> I concurr. Most likely, the first expression is evaluated at compile
> time and there is a bug in 'round of the static evaluator.
When the value is read from input, the effect is still present, though.
I don't really know how to read -gnatdg, thus superficial observation
yields the follow as the way that Convert computes the returned object:
T2b : constant lib__TlowB :=
lib__TlowB?({lib__TlowB?(value #/ 1.00E-1)});
next prev parent reply other threads:[~2014-01-23 9:42 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-22 16:48 How to round to the nearest fixed-point value? Natasha Kerensikova
2014-01-22 17:53 ` G.B.
2014-01-22 22:26 ` adambeneschan
2014-01-23 9:21 ` Georg Bauhaus
2014-01-22 22:45 ` adambeneschan
2014-01-23 5:29 ` J-P. Rosen
2014-01-23 7:00 ` Natasha Kerensikova
2014-01-23 9:42 ` Georg Bauhaus [this message]
2014-01-23 7:02 ` Natasha Kerensikova
2014-01-23 16:41 ` adambeneschan
2014-01-24 9:58 ` Natasha Kerensikova
2014-01-24 22:30 ` Randy Brukardt
2014-01-24 22:47 ` Randy Brukardt
2014-01-26 14:19 ` Natasha Kerensikova
2014-01-28 23:43 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox