Date: Wed, 23 Oct 1996 09:05:51 -0700 From: John Polstra <jdp@polstra.com> To: FreeBSD-gnats-submit@freebsd.org Cc: freebsd-bugs@freebsd.org Subject: Re: bin/1305: dc miscomputes remainder Message-ID: <199610231605.JAA26732@austin.polstra.com>
next in thread | raw e-mail | index | archive | help
> $ dc > 20176126330 14336 %p > 1012666 > > The correct answer is 14329. According to my HP-16 calculator, the correct answer is 12666, not 14329. So maybe it is a simple bug involving a portion of the answer not getting cleared properly. I built GNU bc-1.03, which contains their current version of "dc". This problem is fixed in that version. The code is _very_ different from what we have in our source tree. The best solution might be to replace our "dc" and "bc" with the current GNU versions. They were released in November 1994, so they are presumably quite stable. Our "bc" and "dc" are already GPL-tainted; that's not an issue.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610231605.JAA26732>