mpf_set_d
Kevin Ryde
user42 at zip.com.au
Tue Nov 25 06:16:07 CET 2003
"Hee Jung Lee" <heejung73 at yahoo.com> writes:
>
> when i use mpf_set_d(), how do i make sure that
> the copy is "exact"?
It is exact, in the sense that the bits in the double are all
transferred.
> 0.897959184000000000000000000000 and NOT
> 0.897959183999999965841709581582
That's probably the different number of digits you requested from
printf and gmp_printf in your program.
(Also I'm not certain the two prints will round the same way, so the
last digit might be 1 different anyway.)
More information about the gmp-discuss
mailing list