comp.lang.ada
 help / color / mirror / Atom feed
* Re: Exception on System.Max_Digits
@ 1998-02-05  0:00 Dan Lehman
  0 siblings, 0 replies; 6+ messages in thread
From: Dan Lehman @ 1998-02-05  0:00 UTC (permalink / raw)



> The ACVC certainly tests for this

Not so certainly at all--l00k and show us where?!

There seem to be no specific Float_IO tests that use large numerals
--they're not really so keen on that aspect of conformity, rather
simply checking that things are in place (so, small, easy model
numbers get used--occasionally non-model #s, too, which show up
on disputes! :-).

The only case of longggg numerals that I have found is in tests
that check for exact representations of 'Large/'Small (though one
might expect the bogus argument about too many numerals to be
offered there as well :-).

---Dan
------- *





^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Exception on System.Max_Digits
@ 1998-02-05  0:00 Dan Lehman
  0 siblings, 0 replies; 6+ messages in thread
From: Dan Lehman @ 1998-02-05  0:00 UTC (permalink / raw)



Please name the compiler(s) involved here (seems like relevant information
omitted from the question, surely!).

---Dan
------- *
 





^ permalink raw reply	[flat|nested] 6+ messages in thread
* Exception on System.Max_Digits
@ 1998-01-30  0:00 K. E. Garlington
  1998-01-30  0:00 ` Tucker Taft
  1998-02-01  0:00 ` Robert Dewar
  0 siblings, 2 replies; 6+ messages in thread
From: K. E. Garlington @ 1998-01-30  0:00 UTC (permalink / 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?




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1998-02-05  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-02-05  0:00 Exception on System.Max_Digits Dan Lehman
  -- strict thread matches above, loose matches on Subject: below --
1998-02-05  0:00 Dan Lehman
1998-01-30  0:00 K. E. Garlington
1998-01-30  0:00 ` Tucker Taft
1998-02-01  0:00 ` Robert Dewar
1998-02-01  0:00   ` Ken Garlington

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