Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Apr 1996 11:05:54 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        stein@ife.no (Stein Morten Sandbech)
Cc:        tim@sarc.city.ac.uk, questions@FreeBSD.ORG
Subject:   Re: Division error in javac / kaffe ?
Message-ID:  <199604091805.LAA05398@phaeton.artisoft.com>
In-Reply-To: <9604090728.AA17909@tigern.ife.no> from "Stein Morten Sandbech" at Apr 9, 96 09:28:18 am

next in thread | previous in thread | raw e-mail | index | archive | help
[ ... ]

> 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.



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