> i encountered an interesting problem during my s/w development,
> I had some calulation part whose result is a double value.The result is
> different on difeerent versions of jdk (jdk1.5.06 and jdk1.5.02).
On the same machine?
Dan.

Signature
Daniel Dyer
http://www.dandyer.co.uk
manzur - 09 Nov 2006 10:36 GMT
They are two different machines.
> > i encountered an interesting problem during my s/w development,
> > I had some calulation part whose result is a double value.The result is
[quoted text clipped - 3 lines]
>
> Dan.
Daniel Dyer - 09 Nov 2006 11:41 GMT
> They are two different machines.
Might not be the JRE that is the problem. Different machines may use
different precisions. If you want predictable results, use strictfp
(http://en.wikipedia.org/wiki/Strictfp).
Dan.

Signature
Daniel Dyer
http://www.dandyer.co.uk
> i encountered an interesting problem during my s/w development,
> I had some calulation part whose result is a double value.The result is
> different on difeerent versions of jdk (jdk1.5.06 and jdk1.5.02).
Actually it is 1.5.0_2 -> 1.5.0_6 and the _02 to _06 is only bugfixes,
so unless a bug fixed effects your code, then I would look elsewhere
for the difference.
Arne
Chris Uppal - 09 Nov 2006 13:28 GMT
> > i encountered an interesting problem during my s/w development,
> > I had some calulation part whose result is a double value.The result is
> > different on difeerent versions of jdk (jdk1.5.06 and jdk1.5.02).
>
> Actually it is 1.5.0_2 -> 1.5.0_6 and the _02 to _06 is only bugfixes,
And for details of the bugfixes see
http://java.sun.com/j2se/1.5.0/ReleaseNotes.html
but like Arne, I suspect your problem lies elsewhere.
-- chris