Re: rational to floating point?

Thant Tessman <thant@acm.org>
27 Oct 2003 15:43:35 -0500

          From comp.compilers

Related articles
[2 earlier articles]
Re: rational to floating point? nmm1@cus.cam.ac.uk (2003-10-13)
Re: rational to floating point? haberg@matematik.su.se (2003-10-13)
Re: rational to floating point? thant@acm.org (Thant Tessman) (2003-10-14)
Re: rational to floating point? fjh@cs.mu.oz.au (Fergus Henderson) (2003-10-18)
Re: rational to floating point? nmm1@cus.cam.ac.uk (2003-10-18)
Re: rational to floating point? Peter-Lawrence.Montgomery@cwi.nl (2003-10-18)
Re: rational to floating point? thant@acm.org (Thant Tessman) (2003-10-27)
| List of all articles for this month |

From: Thant Tessman <thant@acm.org>
Newsgroups: comp.compilers
Date: 27 Oct 2003 15:43:35 -0500
Organization: XMission http://www.xmission.com/
References: 03-10-065 03-10-080 03-10-084
Keywords: arithmetic
Posted-Date: 27 Oct 2003 15:43:35 EST

Fergus Henderson wrote:


[...ldexp...]


Thanks, that made things a lot simpler! I understand that eventually I
should use the technique described by Clinger and by the post from Peter
L. Montgomery to convert rationals with the minimum loss of accuracy,
but from the (admittedly non-exhaustive) tests, ldexp doesn't lose any
precision. It has the advantage of taking care of a lot of the gory
details in a portable way.


-thant



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.