about DivideAndRemainder functionnality

#Cyrille37# cyrille37 at gmail.com
Mon Jan 28 12:58:03 CET 2008


Hello,
I'm not a expert with mathematic, so I come to you because I need to 
find the divider and the remainder of 2 numbers, like the Java 
BigInteger.DivideAndRemainder() do. I do not know wich GMP's divide 
function to use :

To get the remainder I think I've just to call mpz_mod() but I do not 
know the divide function : cdiv or fdiv or tdiv or another ?

Thanks for your help
Cyrille.




More information about the gmp-discuss mailing list