lround.3 (140177) | lround.3 (144772) |
---|---|
1.\" Copyright (c) 2005 David Schultz <das@FreeBSD.org> 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" | 1.\" Copyright (c) 2005 David Schultz <das@FreeBSD.org> 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" |
25.\" $FreeBSD: head/lib/msun/man/lround.3 140177 2005-01-13 10:43:01Z ru $ | 25.\" $FreeBSD: head/lib/msun/man/lround.3 144772 2005-04-08 01:24:08Z das $ |
26.\" | 26.\" |
27.Dd January 11, 2005 | 27.Dd April 7, 2005 |
28.Dt LROUND 3 29.Os 30.Sh NAME 31.Nm llround , 32.Nm llroundf , | 28.Dt LROUND 3 29.Os 30.Sh NAME 31.Nm llround , 32.Nm llroundf , |
33.Nm llroundl , |
|
33.Nm lround , | 34.Nm lround , |
34.Nm lroundf | 35.Nm lroundf , 36.Nm lroundl |
35.Nd "convert to nearest integral value" 36.Sh LIBRARY 37.Lb libm 38.Sh SYNOPSIS 39.In math.h 40.Ft "long long" 41.Fn llround "double x" 42.Ft "long long" 43.Fn llroundf "float x" | 37.Nd "convert to nearest integral value" 38.Sh LIBRARY 39.Lb libm 40.Sh SYNOPSIS 41.In math.h 42.Ft "long long" 43.Fn llround "double x" 44.Ft "long long" 45.Fn llroundf "float x" |
46.Ft "long long" 47.Fn llroundl "long double x" |
|
44.Ft long 45.Fn lround "double x" 46.Ft long 47.Fn lroundf "float x" | 48.Ft long 49.Fn lround "double x" 50.Ft long 51.Fn lroundf "float x" |
52.Ft long 53.Fn lroundl "long double x" |
|
48.Sh DESCRIPTION 49The 50.Fn lround 51function returns the integer nearest to its argument 52.Fa x , 53rounding away from zero in halfway cases. 54If the rounded result is too large to be represented as a 55.Vt long --- 9 unchanged lines hidden (view full) --- 65.Fn lround x 66is equivalent to 67.Po Vt long Pc Ns Fn round x 68(although the former may be more efficient). 69.Pp 70The 71.Fn llround , 72.Fn llroundf , | 54.Sh DESCRIPTION 55The 56.Fn lround 57function returns the integer nearest to its argument 58.Fa x , 59rounding away from zero in halfway cases. 60If the rounded result is too large to be represented as a 61.Vt long --- 9 unchanged lines hidden (view full) --- 71.Fn lround x 72is equivalent to 73.Po Vt long Pc Ns Fn round x 74(although the former may be more efficient). 75.Pp 76The 77.Fn llround , 78.Fn llroundf , |
73and | 79.Fn llroundl , |
74.Fn lroundf | 80.Fn lroundf |
81and 82.Fn lroundl |
|
75functions differ from 76.Fn lround 77only in their input and output types. 78.Sh SEE ALSO 79.Xr lrint 3 , 80.Xr math 3 , 81.Xr rint 3 , 82.Xr round 3 83.Sh STANDARDS 84The 85.Fn llround , 86.Fn llroundf , | 83functions differ from 84.Fn lround 85only in their input and output types. 86.Sh SEE ALSO 87.Xr lrint 3 , 88.Xr math 3 , 89.Xr rint 3 , 90.Xr round 3 91.Sh STANDARDS 92The 93.Fn llround , 94.Fn llroundf , |
95.Fn llroundl , |
|
87.Fn lround , | 96.Fn lround , |
97.Fn lroundf , |
|
88and | 98and |
89.Fn lroundf | 99.Fn lroundl |
90functions conform to 91.St -isoC-99 . 92.Sh HISTORY | 100functions conform to 101.St -isoC-99 . 102.Sh HISTORY |
93These routines first appeared in | 103The 104.Ft float 105and 106.Ft double 107versions of these routines first appeared in |
94.Fx 5.4 . | 108.Fx 5.4 . |
109The 110.Ft long double 111versions appeared in 112.Fx 6.0 . |
|