I have two mpz_t type variables containing large integers and I need one divided by the other as a double. I know that this double will be <1, but I can't find a way to do this. Also, is it normal for mpz functions to use huge amounts of memory? I played around with mpz_cdiv_qr a bit but the memory ballooned rapidly (was fine once i cleared all the variables after, but still). In other parts of the code I readily use mpz mulitplyers but have no memory issues (or at least, if i do they're smaller than the others i'm already aware of!)
Thanks! -Z