From owner-freebsd-questions Tue Apr 9 11:13:09 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA00279 for questions-outgoing; Tue, 9 Apr 1996 11:13:09 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id LAA00274 for ; Tue, 9 Apr 1996 11:13:07 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA05398; Tue, 9 Apr 1996 11:05:54 -0700 From: Terry Lambert Message-Id: <199604091805.LAA05398@phaeton.artisoft.com> Subject: Re: Division error in javac / kaffe ? To: stein@ife.no (Stein Morten Sandbech) Date: Tue, 9 Apr 1996 11:05:54 -0700 (MST) Cc: tim@sarc.city.ac.uk, questions@FreeBSD.ORG In-Reply-To: <9604090728.AA17909@tigern.ife.no> from "Stein Morten Sandbech" at Apr 9, 96 09:28:18 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk [ ... ] > The output: > > v = 2 > w = 5 > The division: W = v / w; yields : W=2.5 > > v = 345.122 > w = 1203.21 > The division: W = v / w; yields : W=3.48633 > > v = 12345.1 > w = 1203.21 > The division: W = v / w; yields : W=0.0974645 > > v = 12345.1 > w = 1203.21 > The division: W = w / v; yields : W=10.2601 > > > Correct me if I'm wrong, but this does not seem right :-) The answers are correct for inverted operands. Look at the opstack ordering for division arguments in the source code. You should report this to the Kaffe maintainer instead of this list -- he is more likely to fix it than we are. 8-). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.