语法:
#include <cmath> double fmod( double x, double y );
fmod() 函数返回 x/y 的余数。
C++ 也提供了下列重载形式:
#include <cmath> float fmod( float x, float y ); // same as fmodf() in C99 long double fmod( long double x, long double y ); // same as fmodl() in C99
相关主题: ceil, fabs, floor