From owner-freebsd-bugs Wed Oct 23 09:05:57 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA23946 for bugs-outgoing; Wed, 23 Oct 1996 09:05:57 -0700 (PDT) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id JAA23940; Wed, 23 Oct 1996 09:05:53 -0700 (PDT) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.7.6/8.7.3) with ESMTP id JAA26732; Wed, 23 Oct 1996 09:05:51 -0700 (PDT) Message-Id: <199610231605.JAA26732@austin.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 From: John Polstra Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > $ 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.