7.12.9.3 The nearbyint functions

Synopsis

1

#include <math.h>
double nearbyint(double x);
float nearbyintf(float x);
long double nearbyintl(long double x);

Description

2

The nearbyint functions round their argument to an integer value in floating-point format, using the current rounding direction and without raising the “inexact” floating- point exception.

Returns

3

The nearbyint functions return the rounded integer value.