M
mohi
hi everyone
i know that the fundamental modulus operator (%) is designed to take
two int or long arguments,
but i hav a problem where i need to find the remender generated by the
division of a number which is equal to 2^32(not 2^31) and so it can
only be stored in a double .so how to find like
double divident=pow(2.0,32);
int divisor=36;//say
int /*or whatever type*/ rem= dividnt/divisor; //(logically)
so can anyone help how to find the remender in such a case ?????
mohan
i know that the fundamental modulus operator (%) is designed to take
two int or long arguments,
but i hav a problem where i need to find the remender generated by the
division of a number which is equal to 2^32(not 2^31) and so it can
only be stored in a double .so how to find like
double divident=pow(2.0,32);
int divisor=36;//say
int /*or whatever type*/ rem= dividnt/divisor; //(logically)
so can anyone help how to find the remender in such a case ?????
mohan