Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jun 1996 03:02:05 +0200
From:      Torbjorn Granlund <tege@noisy.tmg.se>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/1305: dc miscomputes remainder
Message-ID:  <199606100102.DAA18966@noisy.tmg.se>
Resent-Message-ID: <199606100110.SAA24971@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         1305
>Category:       bin
>Synopsis:       dc miscomputes remainder
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun  9 18:10:01 PDT 1996
>Last-Modified:
>Originator:     Torbjorn Granlund
>Organization:
TMG Datakonsult
>Release:        FreeBSD 2.1-STABLE i386
>Environment:

Doesn't seem to matter (sic).  Just to make sure, I tried two radically
different machines.

>Description:

The remainder operator ('%') doesn't always work right.

>How-To-Repeat:

$ dc
20176126330 14336 %p
1012666

The correct answer is 14329.

>Fix:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606100102.DAA18966>