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,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b257fba0affa289 X-Google-Attributes: gid103376,public From: Preben Randhol Subject: Re: fixed type (delta) in ada Date: 1999/11/28 Message-ID: #1/1 X-Deja-AN: 554078362 References: <383f6dbb.22609744@news.tstonramp.com> <81pvi5$sl1$1@nnrp1.deja.com> <38409C87.69EC865@easystreet.com> X-Complaints-To: usenet@itea.ntnu.no X-Trace: kopp.stud.ntnu.no 943803254 2359 129.241.83.82 (28 Nov 1999 15:34:14 GMT) Organization: ProgramVareVerkstedet NNTP-Posting-Date: 28 Nov 1999 15:34:14 GMT Newsgroups: comp.lang.ada Date: 1999-11-28T15:34:14+00:00 List-Id: Al Christians writes: | Robert Dewar wrote: | > No, the output should be 71.3, and this is what is expected. | | So, why does GNAT 3.12p give 68.55? I also got 68.55 on GNAT 3.12p on a Redhat 6.1 Linux system. Btw. after using the other solution which gave 70.2, I noticed that if I changed the numbers so I got a product like: 80.3198 (on a calculator) it was given as 80.31. This is expected, but how does one get Ada to round off the value 80.3198 to 80.32? -- Preben Randhol "Marriage is when you get to keep [randhol@pvv.org] your girl and don't have to give [http://www.pvv.org/~randhol/] her back to her parents." (Eric, 6)