1 .\" Copyright 2001 Andries Brouwer <aeb@cwi.nl>.
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date. The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein. The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .TH LRINT 3 2007-07-26 "" "Linux Programmer's Manual"
25 lrint, lrintf, lrintl, llrint, llrintf, llrintl \- round to nearest integer
30 .BI "long int lrint(double " x );
32 .BI "long int lrintf(float " x );
34 .BI "long int lrintl(long double " x );
36 .BI "long long int llrint(double " x );
38 .BI "long long int llrintf(float " x );
40 .BI "long long int llrintl(long double " x );
46 Feature Test Macro Requirements for glibc (see
47 .BR feature_test_macros (7)):
51 All functions shown above:
52 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
56 These functions round their argument to the nearest integer value,
57 using the current rounding direction.
58 If \fIx\fP is infinite or NaN, or if the rounded value is outside
59 the range of the return type, the numeric result is unspecified.
60 A domain error may occur if the magnitude of \fIx\fP is too large.
62 The rounded integer value.
66 The magnitude of \fIx\fP is too large and
67 .I "(math_errhandling & MATH_ERRNO)"