diff options
author | das <das@FreeBSD.org> | 2005-04-08 01:24:08 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2005-04-08 01:24:08 +0000 |
commit | 15bd306d7ac7202143a052f70402305a2c04968d (patch) | |
tree | 061e2bb48941ddfb39b8e3fd0b0c7710556777cf /lib/msun/man | |
parent | 4df744a4717c111c1ef2d75a7215e2a785dfc73c (diff) | |
download | FreeBSD-src-15bd306d7ac7202143a052f70402305a2c04968d.zip FreeBSD-src-15bd306d7ac7202143a052f70402305a2c04968d.tar.gz |
Add roundl(), lroundl(), and llroundl().
Diffstat (limited to 'lib/msun/man')
-rw-r--r-- | lib/msun/man/lround.3 | 28 | ||||
-rw-r--r-- | lib/msun/man/round.3 | 20 |
2 files changed, 36 insertions, 12 deletions
diff --git a/lib/msun/man/lround.3 b/lib/msun/man/lround.3 index d45bb27..f2c4a3f 100644 --- a/lib/msun/man/lround.3 +++ b/lib/msun/man/lround.3 @@ -24,14 +24,16 @@ .\" .\" $FreeBSD$ .\" -.Dd January 11, 2005 +.Dd April 7, 2005 .Dt LROUND 3 .Os .Sh NAME .Nm llround , .Nm llroundf , +.Nm llroundl , .Nm lround , -.Nm lroundf +.Nm lroundf , +.Nm lroundl .Nd "convert to nearest integral value" .Sh LIBRARY .Lb libm @@ -41,10 +43,14 @@ .Fn llround "double x" .Ft "long long" .Fn llroundf "float x" +.Ft "long long" +.Fn llroundl "long double x" .Ft long .Fn lround "double x" .Ft long .Fn lroundf "float x" +.Ft long +.Fn lroundl "long double x" .Sh DESCRIPTION The .Fn lround @@ -70,8 +76,10 @@ is equivalent to The .Fn llround , .Fn llroundf , -and +.Fn llroundl , .Fn lroundf +and +.Fn lroundl functions differ from .Fn lround only in their input and output types. @@ -84,11 +92,21 @@ only in their input and output types. The .Fn llround , .Fn llroundf , +.Fn llroundl , .Fn lround , +.Fn lroundf , and -.Fn lroundf +.Fn lroundl functions conform to .St -isoC-99 . .Sh HISTORY -These routines first appeared in +The +.Ft float +and +.Ft double +versions of these routines first appeared in .Fx 5.4 . +The +.Ft long double +versions appeared in +.Fx 6.0 . diff --git a/lib/msun/man/round.3 b/lib/msun/man/round.3 index 5f34ce0..262cf0f 100644 --- a/lib/msun/man/round.3 +++ b/lib/msun/man/round.3 @@ -24,12 +24,13 @@ .\" .\" $FreeBSD$ .\" -.Dd November 29, 2003 +.Dd April 7, 2005 .Dt ROUND 3 .Os .Sh NAME .Nm round , -.Nm roundf +.Nm roundf , +.Nm roundl .Nd round to nearest integral value .Sh LIBRARY .Lb libm @@ -39,11 +40,14 @@ .Fn round "double x" .Ft float .Fn roundf "float x" +.Ft long double +.Fn roundl "long double x" .Sh DESCRIPTION The -.Fn round +.Fn round , +.Fn roundf , and -.Fn roundf +.Fn roundl functions return the nearest integral value to .Fa x ; if @@ -61,9 +65,7 @@ absolute value (i.e., they round away from zero). .Xr rint 3 , .Xr trunc 3 .Sh STANDARDS -The -.Fn round -function conforms to +These functions conform to .St -isoC-99 . .Sh HISTORY The @@ -72,3 +74,7 @@ and .Fn roundf functions appeared in .Fx 5.3 . +The +.Fn roundl +function appeared in +.Fx 6.0 . |