Annotated edit history of
llround(3) version 1, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
LROUND |
|
|
2 |
!!!LROUND |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
RETURN VALUE |
|
|
7 |
ERRORS |
|
|
8 |
CONFORMING TO |
|
|
9 |
SEE ALSO |
|
|
10 |
---- |
|
|
11 |
!!NAME |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
lround, lroundf, lroundl, llround, llroundf, llroundl - round to nearest integer, away from zero |
|
|
15 |
!!SYNOPSIS |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
__#include |
|
|
19 |
__ ''x''__); |
|
|
20 |
long int lroundf(float__ ''x''__); |
|
|
21 |
long int lroundl(long double__ ''x''__); |
|
|
22 |
long long int llround(double__ ''x''__); |
|
|
23 |
long long int llroundf(float__ ''x''__); |
|
|
24 |
long long int llroundl(long double__ ''x''__); |
|
|
25 |
__ |
|
|
26 |
!!DESCRIPTION |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
These functions round their argument to the nearest integer |
|
|
30 |
value, rounding away from zero, regardless of the current |
|
|
31 |
rounding direction. If ''x'' is infinite or NaN, or if |
|
|
32 |
the rounded value is outside the range of the return type, |
|
|
33 |
the numeric result is unspecified. A domain error may occur |
|
|
34 |
if the magnitude of ''x'' is too large. |
|
|
35 |
!!RETURN VALUE |
|
|
36 |
|
|
|
37 |
|
|
|
38 |
The rounded integer value. |
|
|
39 |
!!ERRORS |
|
|
40 |
|
|
|
41 |
|
|
|
42 |
__EDOM__ |
|
|
43 |
|
|
|
44 |
|
|
|
45 |
The magnitude of ''x'' is too large and |
|
|
46 |
''(math_errhandling '' is |
|
|
47 |
non-zero. |
|
|
48 |
!!CONFORMING TO |
|
|
49 |
|
|
|
50 |
|
|
|
51 |
C99. |
|
|
52 |
!!SEE ALSO |
|
|
53 |
|
|
|
54 |
|
|
|
55 |
ceil(3), floor(3), lrint(3), |
|
|
56 |
nearbyint(3), rint(3), |
|
|
57 |
round(3) |
|
|
58 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.