Date: Wed, 23 Oct 1996 09:10:02 -0700 (PDT) From: John Polstra <jdp@polstra.com> To: freebsd-bugs Subject: Re: bin/1305: dc miscomputes remainder Message-ID: <199610231610.JAA24118@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/1305; it has been noted by GNATS. From: John Polstra <jdp@polstra.com> To: FreeBSD-gnats-submit@freebsd.org Cc: freebsd-bugs@freebsd.org Subject: Re: bin/1305: dc miscomputes remainder Date: Wed, 23 Oct 1996 09:05:51 -0700 > $ 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?199610231610.JAA24118>