Bug#567763: Wrong answer for...

2010-02-01 Thread Kyle Wheeler
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

Bug#567763: Wrong answer for... $ echo 8 - 0.5 | wcalc -EE -P0

2010-01-31 Thread Kingsley G. Morse Jr.
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