From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,df90a4053dcaf2ca X-Google-Attributes: gid103376,public From: Ken Garlington Subject: Re: Exception on System.Max_Digits Date: 1998/02/01 Message-ID: <34D53DFD.30BF@nospam.flash.net>#1/1 X-Deja-AN: 321243557 Content-Transfer-Encoding: 7bit References: <34D20EC6.55DD@nospam.lmco.com> Mime-Version: 1.0 Reply-To: Ken.Garlington@nospam.computer.org Content-Type: text/plain; charset=us-ascii Organization: Flashnet Communications, http://www.flash.net Newsgroups: comp.lang.ada Date: 1998-02-01T00:00:00+00:00 List-Id: Robert Dewar wrote: > > Ken asks > > < 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. > >> > > A truly surprising bug, it is of course the case that input numbers can > have any number of digits (and having to handle this in Float_IO can > be a bit annoying). The ACVC certainly tests for this, so I guess the > compiler which raised Constraint_Error must not be validated??? I'll check on the validation status (of course, this is an Ada83 compiler, so I'm not sure what kind of answer I'll get). Does anyone know the specific ACVC test(s) that apply?