Problem converting IEEE 754 binary to double

Lars Rößiger lars.roessiger at
Thu Oct 27 15:49:33 CEST 2005


I'm trying to convert this binary to a double:


This binary is little endian, so I switched the bytes and are using this
binary instead:


I played around with mpf_set_str() and mpf_get_d() without any success.
GMP never returns the correct corresponding double (which would be
around 10.9064868).

Can anyone point me into the right direction?

Thank you,

More information about the gmp-discuss mailing list