7.12.9.4 The rint functions

Synopsis

1

#include <math.h>
double rint(double x);
float rintf(float x);
long double rintl(long double x);

Description

2

The rint functions differ from the nearbyint functions (7.12.9.3) only in that the rint functions may raise the “inexact” floating-point exception if the result differs in value from the argument.

Returns

3

The rint functions return the rounded integer value.