Division of a small number by a larger one

Chris Saunders chris.saunders@sympatico.ca
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.

Chris Saunders

----- Original Message ----- 
From: "Kevin Ryde" <user42@zip.com.au>
To: "Chris Saunders" <chris.saunders@sympatico.ca>
Cc: <gmp-discuss@swox.com>
Sent: Wednesday, July 02, 2003 9:36 PM
Subject: Re: Division of a small number by a larger one

> "Chris Saunders" <chris.saunders@sympatico.ca> 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
> gmp-discuss@swox.com
> https://gmplib.org/mailman/listinfo/gmp-discuss