From owner-freebsd-bugs Wed Oct 23 09:10:07 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA24130 for bugs-outgoing; Wed, 23 Oct 1996 09:10:07 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA24118; Wed, 23 Oct 1996 09:10:02 -0700 (PDT) Date: Wed, 23 Oct 1996 09:10:02 -0700 (PDT) Message-Id: <199610231610.JAA24118@freefall.freebsd.org> To: freebsd-bugs Cc: From: John Polstra Subject: Re: bin/1305: dc miscomputes remainder Reply-To: John Polstra Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/1305; it has been noted by GNATS. From: John Polstra 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.