Question about creating and displaying mpf

Markus Törnqvist mjt at nysv.org
Tue Sep 14 20:22:20 CEST 2010


On Tue, Sep 14, 2010 at 05:53:20PM +0000, Markus Törnqvist wrote:

>>It is stored as a binary floating point number.
>How does that work?

Disregard, it's just a float.

Which made me test rationals. And fail the same way as everything else.

http://gmp.pastebin.com/gkqahLiw

>I made a demo case, no gmpy involved, the smallest I could come up with:
>http://gmp.pastebin.com/PhCy1fuG
>
>And a bit of a longer one:
>http://gmp.pastebin.com/Y23W6rja
>
>:(
>
>Anyone able to reproduce those? On any version 4?

Thanks!

-- 
mjt



More information about the gmp-discuss mailing list