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-23 16:11:02 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!news.belwue.de!news.uni-stuttgart.de!carbon.eu.sun.com!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: Why no 'Floor for fixed point types Date: Thu, 23 Oct 2003 23:10:45 +0000 (UTC) Organization: BT Openworld Message-ID: References: NNTP-Posting-Host: host81-129-61-254.in-addr.btopenworld.com X-Trace: titan.btinternet.com 1066950645 9100 81.129.61.254 (23 Oct 2003 23:10:45 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Thu, 23 Oct 2003 23:10:45 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MSMail-Priority: Normal X-Priority: 3 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Xref: archiver1.google.com comp.lang.ada:1556 Date: 2003-10-23T23:10:45+00:00 List-Id: "Duncan Sands" wrote in message news:mailman.194.1066939697.25614.comp.lang.ada@ada-france.org... > I think the subject says it all. Just curious. It only makes sense to convert to a float then to an integer - what if there is no fixed point value that has the same magnitude as an integer value? It is annoying though, when in 'real life' you don't really care about the middle conversion, e.g. My_Int := My_Int_Type (My_Float_Type'Floor (My_Fixed_Type'(1.5))); My_Int should be 1. I've just been throew this one myself and if you think long and hard you will see the logic :-)