Added FLT_ROUNDS text as proposed by AEB/Fabian Kreutz

This commit is contained in:
Michael Kerrisk 2004-11-15 10:55:23 +00:00
parent fe71be4b36
commit 4022b76eb8
1 changed files with 17 additions and 0 deletions

View File

@ -1,5 +1,7 @@
.\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
.\" Distributed under GPL, 2002-07-27 Walter Harms
.\" Modified 2004-11-15, Added further text on FLT_ROUNDS
.\" as suggested by AEB and Fabian Kreutz
.\"
.TH FMA 3 2002-07-27 "" "Linux Programmer's Manual"
.SH NAME
@ -23,6 +25,21 @@ function computes
.IR x " * " y " + " z .
The result is rounded according to the
rounding mode determined by the value of FLT_ROUNDS.
FLT_ROUNDS indicates the implementation-defined rounding
behaviour for floating-point addition,
and has one of the following values:
.IP \-1
The rounding mode is not determinable.
.IP 0
Roundng is towards 0.
.IP 1
Rounding is towards nearest number.
.IP 2
Rounding is towards positive infinity.
.IP 3
Rounding is towards negative infinity.
.PP
Other values represent machine-dependent, non-standard rounding modes.
.SH "CONFORMING TO"
C99
.SH "SEE ALSO"