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


rint, rintf, remainder, remainderf---round and remainder

Synopsis

#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 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.