问题 //test.cpp fmod( pow(2.0,127),467 );// Return result as 132 <-- correct answer When i using my own implementation int mod( int dividend , int divisor ){ return (dividend % divisor + divisor ) % divisor; } int a = mod ( pow(2.0,127),467 );// Wrong result , 441 //or direct use int a = pow(2.0,127); int b = a%467 // Will return wrong result , -21 i want to get answer 132, fmod does it, but why my implementation cannot get the correct answer? 回答1: The problem, as addressed by Ivan, is that you