跳转到内容

rint, rintf, remainder, remainderf : 舍入与求余

#include <math.h>
double rint(double x);
float rintf(float x);
double remainder(double x, double y);
float remainderf(float x, float y);
```### Description
rint 和 rintf 返回舍入到最接近整数的参数。remainder 和 remainderf 求 x/y 的余数;该值的范围在 -y/2 .. +y/2 之间。### Returns
rint 和 remainder 将整数结果作为 double 返回。
---
**权威来源**: BUSMASTER DITA help source `rint.dita`, compiled into `BUSMASTER.CHM` with the application.