fmod

来自cppreference.com
跳转到: 导航, 搜索

语法:

    #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

个人工具
名字空间
操作
导航
工具箱
其他语言