Re: convert mpf t to double with rounding-modes defined by ieee754

usenett@gmx.de usenett at gmx.de
Mon Aug 1 10:02:30 CEST 2005


> > I want to write a function of converting mpf_t-variables to doubles by a
> > given rounding mode (to-nearest, truncation, plus infinity, minus
> infinity)
> > defined by the IEEE754 standard.
> 
> See: http://www.mpfr.org/
> Conversion from mpf_t to mpfr_t is very straightforward.

Thanks for the link, but thats not really what I'm looking for. I'd like to
know 'how' to convert a binary number to a correctly rouned double float to
implement this directly for the GMP-library without using the inefficient
indirection with MPFR.

Isn't there any good tutorial how to do such things?

Greets, Heinz

-- 
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++


More information about the gmp-discuss mailing list