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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6a77269912f77a70 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-27 10:50:48 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!sn-xit-03!sn-xit-04!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Why no 'Floor for fixed point types Date: Mon, 27 Oct 2003 12:49:08 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <3F99FBE1.1030601@comcast.net> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:1743 Date: 2003-10-27T12:49:08-06:00 List-Id: "Nick Roberts" wrote in message news:bnen7p$vjo06$1@ID-25716.news.uni-berlin.de... > For a conforming compiler, there should be no rounding issues in the case > Scale=1/Tf'Small, the division is a static expression (which should be > calculated precisely at compile time), and I would expect the > multiplications to be eliminated. Not true if Tf is a generic formal type (and this is a common way to implement such code). Moreover, if you use a code-sharing compiler such as Janus/Ada, it won't be calculated at compile-time, either. Randy.