Contents|Index|Previous|Next

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.

COMPLIANCE
rint and remainder are System V release 4. rintf and remainderf are extensions.