On Tue, Mar 1, 2011 at 5:39 PM, Daniel Popowich
<danielpopowich@gmail.com> wrote:
>
> Daniele Varrazzo writes:
>> If cdecimal is good for you (i.e. if the decimal semantics is fine),
>> you may use mpf throughout your program instead of mpq. It is an
>> exact type (as exact as decimal of course: you can't represent all
>> the rationals) and likely to be more efficient than mpq. Plus, it
>> maps directly with the postgres decimal on I/O.
>>
>
> Really? But it's binary floating point. From the GMP manual,
> http://gmplib.org/manual-4.3.2/Floating_002dpoint-Functions.html:
Uhm... I think you are right. I thought mpf was more similar to a
scaled integer.
-- Daniele