Thanks for finding this bug! It turns out to be an error in the number
formatting logic. The answer is rounded from 7.5 to 8.0, but then the
exponent is erroneously treated as if it was two instead of one (i.e.
80 instead of 8.0). The bug has been fixed in the Wcalc upstream
source, and the fix
Package: wcalc
Version: 2.4-1
Severity: normal
wcalc seems handy and I'd like to rely on it in
shell scripts.
Unfortunately, it seems to me that it returns the
wrong answer when
1.) The "-EE" and "-P0" options are used, and
2.) a decimal number, like 0.5, is subtracted by
an integer numbe
2 matches
Mail list logo