mpq_get_int and mpq_get_frac

Kevin Ryde user42@zip.com.au
Tue, 15 Apr 2003 08:09:38 +1000


I wrote:
>
> Don't forget to test for the numerator becoming zero though, since in
> that case the denominator must be set to 1.

Ah, except of course that won't happen, because the numerator and
denominator won't share a common factor, so no need to watch for
remainder 0.