|
From: | David Kaspar [Dee'Kej] |
Subject: | Re: [bug-gawk] (no subject) |
Date: | Mon, 20 Nov 2017 16:01:22 +0100 |
Hello folks,we have received a new BZ report for a different behaviour of Gawk when MPFR is used and when it is not. Reproducer script:
BEGIN {
ROUNDMODE = "A"
x = 2.21
printf "%4.2f\n",x
printf "%3.1f\n",x
exit
}$ gawk -f ./script
2.212.2$ gawk -M -f ./script
2.212.3The interesting discussion about this was also here - https://forums.fedoraforum.org/showthread.php?316207- :Setting-gawk-ROUNDMODE&p= 1798362#post1798362
"Hmm, looks like Gawk is just (unintentionally) doing with ROUNDMODE="A" what MPFR is doing with its MPFR_RNDA: it's rounding away from zero at all times, not just for ties."Is this really a bug, or just user expecting something wrong from gawk?Best regards,RED HAT | TRIED. TESTED. TRUSTED.David Kaspar [Dee'Kej]
Associate Software Engineer
Brno, Czech Republic
Every airline in the Fortune 500 relies on Red Hat.
Find out why at Trusted | Red Hat.
[Prev in Thread] | Current Thread | [Next in Thread] |