Rounds to the nearest integer value, rounding halfway cases away
from zero regardless of the current rounding direction.
This function is supported on OpenVMS Integrity servers and
Alpha only.
Format
#include <math.h>
long lround (double x);
long lroundf (float x);
long lroundl (long double x);
1 – Argument
x
A real value.
2 – Description
The lround functions return the rounded integer value of x, with
halfway cases rounded away from zero regardless of the current
rounding direction.
3 – Return Values
n Upon success, the rounded integer value.