The Intel Math library supports the following nearest integer functions:
Description: The ceil function returns the smallest integral value not less than x as a floating-point number.
Calling interface:
long double ceill(long double
x);
double ceil(double x);
float ceilf(float x);
Description: The floor function returns the largest integral value not greater than x as a floating-point value.
Calling interface:
long double floorl(long
double x);
double floor(double x);
float floorf(float x);
Description: The lrint function returns the rounded integer value as a long int.
Calling interface:
long int lrintl(long double
x);
long int lrint(double x);
long int lrintf(float x);
Description: The llrint function returns the rounded integer value as a long long int.
Calling interface:
long long int llrintl(long
double x);
long long int llrint(double x);
long long int llrintf(float x);
Description: The lround function returns the rounded integer value as a long int.
Calling interface:
long int lroundl(long double
x);
long int lround(double x);
long int lroundf(float x);
Description: The llround function returns the rounded integer value as a long long int.
Calling interface:
long long int llroundl(long
double x);
long long int llround(double x);
long long int llroundf(float x);
Description: The modf function returns the value of the signed fractional part of x and stores the integral part in floating-point format in *iptr.
Calling interface:
long double modfl(long double
x, long double *iptr);
double modf(double x, double *iptr);
float modff(float x, float *iptr);
Description: The nearbyint function returns the rounded integral value as a floating-point number.
Calling interface:
long double nearbyintl(long
double x);
double nearbyint(double x);
float nearbyintf(float x);
Description: The rint function returns the rounded integral value as a floating-point number.
Calling interface:
long double rintl(long double
x);
double rint(double x);
float rintf(float x);
Description: The round function returns the nearest integral value as a floating-point number.
Calling interface:
long double roundl(long
double x);
double round(double x);
float roundf(float x);
Description: The trunc function returns the truncated integral value as a floating-point number.
Calling interface:
long double truncl(long
double x);
double trunc(double x);
float truncf(float x);