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 number, like 8. I can duplicate the bug by typing the following at the shell prompt: $ echo 8 - 0.1 | wcalc -EE -P0 It returns = 80 but it seems to me that it should return = 8 Thanks, Kingsley -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (990, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.25-2-686 (SMP w/2 CPU cores) Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/bash Versions of packages wcalc depends on: ii libc6 2.9-6 GNU C Library: Shared libraries ii libgmp3c2 2:4.2.1+dfsg-4 Multiprecision arithmetic library ii libmpfr1ldbl 2.3.1.dfsg.1-2 multiple precision floating-point ii libreadline5 5.2-4 GNU readline and history libraries wcalc recommends no packages. wcalc suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org