blob: f2e0a9f2d11d7b6711ac6659cae4358202e341bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
.\" May be distributed under the GNU General Public License
.\" References consulted:
.\" Linux libc source code
.\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
.\" 386BSD man pages
.\" Modified Sat Jul 24 18:28:24 1993 by Rik Faith (faith@cs.unc.edu)
.TH RINT 3 "June 6, 1993" "" "Linux Programmer's Manual"
.SH NAME
rint \- round to closest integer
.SH SYNOPSIS
.nf
.B #include <math.h>
.sp
.BI "double rint(double " x );
.fi
.SH DESCRIPTION
The \fBrint()\fP function rounds \fIx\fP to an integer value according to
the prevalent rounding mode. The default rounding mode is to round to the
nearest integer.
.SH "RETURN VALUE"
The \fBrint()\fP function returns the integer value as a floating-point
number.
.SH "CONFORMING TO"
BSD 4.3
.SH SEE ALSO
.BR abs "(3), " ceil "(3), " fabs "(3), " floor "(3), " labs (3)
|