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-Thread: a07f3367d7,6fabd104d18f3943 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!goblin2!goblin1!goblin.stu.neva.ru!news.tornevall.net!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: conversions between fixed-point types Date: Wed, 23 Sep 2009 15:28:49 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: NNTP-Posting-Host: 8b0a9486668d2fa392ef79c1b83bf139 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: 3d9fa6f7ffd9d4bf78dd3e86a3c9931f X-Complaints-To: abuse@tornevall.net X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: X-Validate-Post: http://news.tornevall.net/validate.php?trace=3d9fa6f7ffd9d4bf78dd3e86a3c9931f X-SpeedUI: 1738 X-Complaints-Italiano: Parlo la lingua non � italiano User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) X-Posting-User: 9b22bfe2855937f9b3faeec7cfc91295 Xref: g2news2.google.com comp.lang.ada:8442 Date: 2009-09-23T15:28:49-07:00 List-Id: Dirk Herrmann wrote: > > FpB'Image(FpB'(-1.5)) evaluates to -1.2 > FpB'Image(FpB(FpA'(-1.5))) evaluates to -1.2 > FpB'Image(MakeBFromA(FpA'(-1.5))) evaluates to -1.6 There is no need to qualify these literals. > Thus, even avoiding all floating point operations, the difference is > still there. It appears to be a question of whether the conversion from > FpA to FpB or the conversion from Float to FpB is computed statically or > dynamically. I presume you mean Fpa rather than Float. Your last sentence may be what's happening. I don't know if that would be allowed or a compiler error. Any language lawyers want to comment? -- Jeff Carter "Go and boil your bottoms." Monty Python & the Holy Grail 01