主页
C 语言
C Math fmod() 函数
demo_ref_math_fmod
运行 ❯
×
更改方向
保存代码
更改主题
#include
#include
int main() { printf("%f\n", fmod(11.0, 3.0)); printf("%f\n", fmod(16.0, 4.0)); printf("%f\n", fmod(31.0, 2.5)); return 0; }
2.000000
0.000000
1.000000