I am afraid that you need to debug your own program. :-) If you then find a pair of input values for which a GMP function miscomputes its result, then you are more likely to convince us that GMP is to blame. -- Torbjörn