truncl(3)

This commit is contained in:
joerg 2013-11-13 22:09:55 +00:00
parent 1f8b65e5d5
commit bc2f32b2d9
3 changed files with 21 additions and 17 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: mi,v 1.1857 2013/11/12 16:48:39 joerg Exp $
# $NetBSD: mi,v 1.1858 2013/11/13 22:09:55 joerg Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@ -9058,6 +9058,7 @@
./usr/share/man/cat3/tree.0 comp-c-catman .cat
./usr/share/man/cat3/trunc.0 comp-c-catman .cat
./usr/share/man/cat3/truncf.0 comp-c-catman .cat
./usr/share/man/cat3/truncl.0 comp-c-catman .cat
./usr/share/man/cat3/tsearch.0 comp-c-catman .cat
./usr/share/man/cat3/ttyaction.0 comp-c-catman .cat
./usr/share/man/cat3/ttylock.0 comp-c-catman .cat
@ -15536,6 +15537,7 @@
./usr/share/man/html3/tree.html comp-c-htmlman html
./usr/share/man/html3/trunc.html comp-c-htmlman html
./usr/share/man/html3/truncf.html comp-c-htmlman html
./usr/share/man/html3/truncl.html comp-c-htmlman html
./usr/share/man/html3/tsearch.html comp-c-htmlman html
./usr/share/man/html3/ttyaction.html comp-c-htmlman html
./usr/share/man/html3/ttylock.html comp-c-htmlman html
@ -22082,6 +22084,7 @@
./usr/share/man/man3/tree.3 comp-c-man .man
./usr/share/man/man3/trunc.3 comp-c-man .man
./usr/share/man/man3/truncf.3 comp-c-man .man
./usr/share/man/man3/truncl.3 comp-c-man .man
./usr/share/man/man3/tsearch.3 comp-c-man .man
./usr/share/man/man3/ttyaction.3 comp-c-man .man
./usr/share/man/man3/ttylock.3 comp-c-man .man

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.148 2013/11/13 12:58:11 joerg Exp $
# $NetBSD: Makefile,v 1.149 2013/11/13 22:09:55 joerg Exp $
#
# @(#)Makefile 5.1beta 93/09/24
#
@ -318,7 +318,8 @@ MLINKS+=tan.3 tanf.3
MLINKS+=tanh.3 tanhf.3
MLINKS+=round.3 roundf.3 \
round.3 roundl.3
MLINKS+=trunc.3 truncf.3
MLINKS+=trunc.3 truncf.3 \
trunc.3 truncl.3
MLINKS+=fmax.3 fmaxl.3
MLINKS+=fmax.3 fmaxf.3
MLINKS+=fmax.3 fmin.3

View File

@ -1,4 +1,4 @@
.\" $NetBSD: trunc.3,v 1.5 2006/04/04 20:26:33 wiz Exp $
.\" $NetBSD: trunc.3,v 1.6 2013/11/13 22:09:55 joerg Exp $
.\"
.\" Copyright (c) 2004, 2005 David Schultz <das@FreeBSD.org>
.\" All rights reserved.
@ -26,13 +26,13 @@
.\"
.\" $FreeBSD: src/lib/msun/man/trunc.3,v 1.3 2005/06/15 19:04:04 ru Exp $
.\"
.Dd March 31, 2006
.Dd November 13, 2013
.Dt TRUNC 3
.Os
.Sh NAME
.Nm trunc ,
.Nm truncf
.\" .Nm truncl
.Nm truncl
.Nd "nearest integral value with magnitude less than or equal to |x|"
.Sh LIBRARY
.Lb libm
@ -42,22 +42,22 @@
.Fn trunc "double x"
.Ft float
.Fn truncf "float x"
.\" .Ft "long double"
.\" .Fn truncl "long double x"
.Ft "long double"
.Fn truncl "long double x"
.Sh DESCRIPTION
The
.Fn trunc
.Fn trunc ,
.Fn truncf ,
and
.Fn truncf
.\" .Fn truncl
.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
.Fn rint ,
.Fn rintf ,
and
.Fn rintf
.\" .Fn rintl
.Fn rintl
respectively, in the
.Dv FP_RZ
rounding mode.
@ -71,9 +71,9 @@ rounding mode.
.Xr round 3
.Sh STANDARDS
The
.Fn trunc
.Fn trunc ,
.Fn truncf ,
and
.Fn truncf
.\" .Fn truncl
.Fn truncl
functions conform to
.St -isoC-99 .