diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-11-22 05:55:40 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-11-22 05:55:40 +0200 |
commit | 152dbfa7b8b695112d9e02be8ba99ef3b8aa75a0 (patch) | |
tree | 71ada178eb2fec5facc2cbcf9018eb8ac5343153 /doc/gawktexi.in | |
parent | c041b9c07df56c3c58067172cad6190595d09ca8 (diff) | |
parent | 3b337ad8f2689554543c38a7ce98d6ec1ebd83c6 (diff) | |
download | egawk-152dbfa7b8b695112d9e02be8ba99ef3b8aa75a0.tar.gz egawk-152dbfa7b8b695112d9e02be8ba99ef3b8aa75a0.tar.bz2 egawk-152dbfa7b8b695112d9e02be8ba99ef3b8aa75a0.zip |
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r-- | doc/gawktexi.in | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in index 0c7e7c66..33cc7d7c 100644 --- a/doc/gawktexi.in +++ b/doc/gawktexi.in @@ -30866,14 +30866,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. @@ -30930,9 +30930,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 |