`rint`

, `rintf`

, `remainder`

, `remainderf`

---round and remainder#include <math.h> double rint(doublex); float rintf(floatx); double remainder(doublex, doubley); float remainderf(floatx, floaty);

**Description**

`rint`

and `rintf`

returns their argument rounded to the nearest
integer. `remainder`

and `remainderf`

find the remainder of
`x`/`y`; this value is in the range -`y`/2 .. +`y`/2.

**Returns**

`rint`

and `remainder`

return the integer result as a double.

**Portability**

`rint`

and `remainder`

are System V release 4. `rintf`

and
`remainderf`

are extensions.

Go to the first, previous, next, last section, table of contents.