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=-1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cb3f9900b9cf2da6 X-Google-Attributes: gid103376,public From: johnherro@aol.com (John Herro) Subject: Re: Truncation of FLOAT values Date: 1996/04/22 Message-ID: <4lfqq1$bhu@newsbf02.news.aol.com>#1/1 X-Deja-AN: 150779650 sender: root@newsbf02.news.aol.com references: organization: America Online, Inc. (1-800-827-6364) newsgroups: comp.lang.ada Date: 1996-04-22T00:00:00+00:00 List-Id: dewar@cs.nyu.edu (Robert Dewar) writes: > Although [John Herro's Floor function for Ada > 83] will typically work, Ada semantics do not > guarantee that it will work. X may not be a > model number, suppose that in fact X is > 1.99999999999999999999999999999999 > ..... [The Floor function may give a wrong > answer in cases like this.] An interesting case! In my next revision of Ada Tutor, I'll mention this fact, and also mention the truncation attributes of Ada 95. I have to say that I've learned a lot hanging around comp.lang.ada, and in many cases this newsgroup has helped me to improve my Ada Tutor program. Thanks to everybody! (Needless to say, I'll announce here when the next revision of Ada Tutor is released.) - John Herro Software Innovations Technology http://members.aol.com/AdaTutor ftp://members.aol.com/AdaTutor