Division of a small number by a larger one
Wed, 2 Jul 2003 22:42:07 -0400
Thanks for the reply Keven
I am not keen to send in a bug report as my situation is a little
complicated. What I have done is written code in Eiffel that
wraps the code in GMP. I have done this on Windows 2000
and don't think that GMP likes this platform too well - it took
me awhile to build a library that would work at all. Part of the
problem may be that my Eiffel compiler uses the Microsoft
Visual C++ 6.0 compiler as a back end to build the "C" code
that the Eiffel compiler generates. I attempted to write some
code that wraps the MPFR stuff and it wouldn't work at all.
----- Original Message -----
From: "Kevin Ryde" <firstname.lastname@example.org>
To: "Chris Saunders" <email@example.com>
Sent: Wednesday, July 02, 2003 9:36 PM
Subject: Re: Division of a small number by a larger one
> "Chris Saunders" <firstname.lastname@example.org> writes:
> > If if I use mpf_t's to do division and I divide 1.0 / 10.0 I get
> > the correct answer. If I try 1.0 / 11.0 I get 0.0
> Sounds wrong. Make a bug report including a test program.
> > no matter how high I set the precision of the numerator.
> It's the precision of the destination which determines the result, but
> the minimum is 53 bits, so 0 is not right.
> gmp-discuss mailing list