Bug#559432: bc: -6^2 = 36, which is actually wrong (should be -36)

2009-12-04 Thread Dr. Nikolaus Klepp
Package: bc Version: 1.06.95-2 Severity: normal bc does evaluate signed expressions in wrong order, more precice it handles operator precedence wrong under certain conditions: -6^2 == 36 wrong, correct is -36 0-6^2== 36 correct -6^2-36 == 0 wrong, correct is -72 -36-6^2 == -72

Bug#559432: bc: -6^2 = 36, which is actually wrong (should be -36)

2009-12-04 Thread John Hasler
To: Dr. Nikolaus Klepp off...@klepp.biz Cc: 559...@bugs.debian.org Subject: Re: Bug#559435: bc: wrong operator precedence X-Draft-From: (nnml+private:bc 826) References: 20091204113255.18295.87026.report...@localhost.localdomain From: John Hasler jhas...@newsguy.com Organization: Dancing Horse