From: "K. E. Garlington" <Kennie.E.Garlington@nospam.lmco.com>
Subject: Exception on System.Max_Digits
Date: 1998/01/30
Date: 1998-01-30T00:00:00+00:00 [thread overview]
Message-ID: <34D20EC6.55DD@nospam.lmco.com> (raw)
We have a case where two Ada83 compilers provide different results, and
we are trying to decide which is correct.
Both compilers have System.Max_Digits = 15. When we use Float_IO
to read the number
-2627.097925618800
one vendor raises a Constraint_Error, the other doesn't. The vendor
of the compiler raising the error says that it is because the number
has too many digits; removing the final zero causes the exception to
be avoided. The other vendor accepts the number.
Is either vendor wrong?
Also, will System.Max_Digits apply to any floating-point type?
next reply other threads:[~1998-01-30 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-01-30 0:00 K. E. Garlington [this message]
1998-01-30 0:00 ` Exception on System.Max_Digits Tucker Taft
1998-02-01 0:00 ` Robert Dewar
1998-02-01 0:00 ` Ken Garlington
-- strict thread matches above, loose matches on Subject: below --
1998-02-05 0:00 Dan Lehman
1998-02-05 0:00 Dan Lehman
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox