Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
llround, llroundf, llroundl - round up to next integer value (long long int)
&pagelevel(4)&pagelevel
Syntax | #include <math.h> long long int llround(double x); long long int llroundf (float x); long long int llroundl (long double x); |
Description
The functions return the integer value (displayed as a number of type long long int
)
| nearest to x. The returned value does not depend on the rounding mode currently set. If the difference between x and the rounded result is exactly 0.5, the next highest integer is returned. |
Return val. | Integer | value (type long long int ) nearest to x if successful. |
Undefined | for overflow or underflow. errno is set to ERANGE to indicate an error. |
Errors | llround(), llroundf(), llroundl() fails if: ERANGE The value is too large, and errno is set to indicate an error. |
Errors | abs(), ceil(), floor(), llrint(), lrint(), lround(), rint(), round() |