remainder
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| 在头文件 <math.h> 中定义
|
||
| float remainderf( float x, float y ); |
||
| double remainder( double x, double y ); |
||
| long double remainderl( long double x, long double y ); |
||
计算浮点除法运算x/y的其余部分。
fmod差异,则返回类型是负的,如果fmod(x, y)>y/2.[编辑] 参数
| x, y | - | 浮点值
|
[编辑] 返回值
余数除以参数
[编辑] 另请参阅
| 浮点除法运算的剩余部分 原文: remainder of the floating point division operation (函数) | |
| (C99) |
商和余数的整数除法 原文: the quotient and remainder of integer division (函数) |
| C++ documentation for remainder
| |