diff options
Diffstat (limited to 'lib/msun/man/trunc.3')
-rw-r--r-- | lib/msun/man/trunc.3 | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/lib/msun/man/trunc.3 b/lib/msun/man/trunc.3 index f7672d2..c510095 100644 --- a/lib/msun/man/trunc.3 +++ b/lib/msun/man/trunc.3 @@ -1,4 +1,4 @@ -.\" Copyright (c) 2004 David Schultz <das@FreeBSD.org> +.\" Copyright (c) 2004, 2005 David Schultz <das@FreeBSD.org> .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without @@ -24,12 +24,13 @@ .\" .\" $FreeBSD$ .\" -.Dd June 20, 2004 +.Dd April 16, 2005 .Dt TRUNC 3 .Os .Sh NAME .Nm trunc , -.Nm truncf +.Nm truncf , +.Nm truncl .Nd nearest integral value with magnitude less than or equal to |x| .Sh LIBRARY .Lb libm @@ -39,18 +40,22 @@ .Fn trunc "double x" .Ft float .Fn truncf "float x" +.Ft long double +.Fn truncl "long double x" .Sh DESCRIPTION The -.Fn trunc +.Fn trunc , +.Fn truncf , and -.Fn truncf +.Fn truncl functions return the nearest integral value with magnitude less than or equal to .Pf | Fa x Ns | . They are equivalent to -.Fn rint -and +.Fn rint , .Fn rintf , +and +.Fn rintl , respectively, in the .Dv FE_TOWARDZERO rounding mode. @@ -64,9 +69,10 @@ rounding mode. .Xr round 3 .Sh STANDARDS The -.Fn trunc +.Fn trunc , +.Fn truncf , and -.Fn truncf +.Fn truncl functions conform to .St -isoC-99 . .Sh HISTORY |