remquol函数
概要:
#include <math.h> long double remquol(long double , long double , int );
描述:
该函数计算与函数remainderl相同的余数。参数指向对象中存储值的绝对值与表达式的整数商对模同余,其中是实现定义的、大于等于的整数。如果存储值不为,其与表达式具有相同的符号。
如果参数为,存储在参数指向对象中的值是不确定的;并且是发生域错误,还是返回,将由实现定义。
参数:
long double
参数为long double类型的浮点数。
long double
参数为long double类型的浮点数。
int
参数为指向int类型对象的指针。
返回值:
函数返回。
范例:
|
|
输出:
The remainder: 0.500000
The quotient: 2
The remainder: -0.500000
The quotient: 3
相关内容:
| remquo | double类型的计算余数函数。 |
| remquof | float类型的计算余数函数。 |
主要参考资料: