Everything

lroundl [V1.09 or later]


This function rounds the argument to an integer value in a floating-point format according to the rounding direction.

[Classification]

Mathematical library

[Syntax]

#include <math.h>

long int __far lroundl(long double x); (C99)

[Return value]

Returns a rounded value. If the rounded value cannot be represented in the return type, this function returns 0 and specifies the macro ERANGE for global variable errno.

[Description]

This function rounds the argument to the integer value in a floating-point format according to the rounding direction, with halfway cases rounded away from 0.