diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-11-22 05:55:01 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-11-22 05:55:01 +0200 |
commit | 3b337ad8f2689554543c38a7ce98d6ec1ebd83c6 (patch) | |
tree | 9f2181ef38ded902a62898433ba26e21656654a4 /doc/gawk.texi | |
parent | 321d49065b977655d9e2ba2b9efe68792ad7d83a (diff) | |
parent | b7b2c08b9d42630135f5a442dab69402fba86b73 (diff) | |
download | egawk-3b337ad8f2689554543c38a7ce98d6ec1ebd83c6.tar.gz egawk-3b337ad8f2689554543c38a7ce98d6ec1ebd83c6.tar.bz2 egawk-3b337ad8f2689554543c38a7ce98d6ec1ebd83c6.zip |
Merge branch 'gawk-4.2-stable'
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r-- | doc/gawk.texi | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi index f9b52ff0..e958fd18 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -31852,14 +31852,14 @@ rounding modes is shown in @ref{table-gawk-rounding-modes}. @item Round toward positive infinity @tab @code{roundTowardPositive} @tab @code{"U"} or @code{"u"} @item Round toward negative infinity @tab @code{roundTowardNegative} @tab @code{"D"} or @code{"d"} @item Round toward zero @tab @code{roundTowardZero} @tab @code{"Z"} or @code{"z"} -@item Round to nearest, ties away from zero @tab @code{roundTiesToAway} @tab @code{"A"} or @code{"a"} +@item Round away from zero @tab @tab @code{"A"} or @code{"a"} @end multitable @end float @code{ROUNDMODE} has the default value @code{"N"}, which selects the IEEE 754 rounding mode @code{roundTiesToEven}. In @ref{table-gawk-rounding-modes}, the value @code{"A"} selects -@code{roundTiesToAway}. This is only available if your version of the +rounding away from zero. This is only available if your version of the MPFR library supports it; otherwise, setting @code{ROUNDMODE} to @code{"A"} has no effect. @@ -31916,9 +31916,9 @@ The other rounding modes are rarely used. Rounding toward positive infinity (@code{roundTowardNegative}) are often used to implement interval arithmetic, where you adjust the rounding mode to calculate upper and lower bounds for the range of output. The @code{roundTowardZero} mode can -be used for converting floating-point numbers to integers. The rounding -mode @code{roundTiesToAway} rounds the result to the nearest number and -selects the number with the larger magnitude if a tie occurs. +be used for converting floating-point numbers to integers. When rounding +away from zero, the nearest number with magnitude greater than or equal to +the value is selected. Some numerical analysts will tell you that your choice of rounding style has tremendous impact on the final outcome, and advise you to |