![]() |
|
|
|||||||
![]() |
Java - difference between jdk1.5.06 and jdk1.5.02 |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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). thanks in advance manzur manzur |
|
|
|
|
#2 |
|
Posts: n/a
|
On Thu, 09 Nov 2006 10:25:16 -0000, manzur <> wrote:
> 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. -- Daniel Dyer http://www.dandyer.co.uk Daniel Dyer |
|
|
|
#3 |
|
Posts: n/a
|
They are two different machines.
Daniel Dyer wrote: > On Thu, 09 Nov 2006 10:25:16 -0000, manzur <> wrote: > > > 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. > > -- > Daniel Dyer > http://www.dandyer.co.uk manzur |
|
|
|
#4 |
|
Posts: n/a
|
On Thu, 09 Nov 2006 10:36:45 -0000, manzur <> wrote:
> 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. -- Daniel Dyer http://www.dandyer.co.uk Daniel Dyer |
|
|
|
#5 |
|
Posts: n/a
|
manzur wrote:
> 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 =?ISO-8859-1?Q?Arne_Vajh=F8j?= |
|
|
|
#6 |
|
Posts: n/a
|
Arne Vajhøj wrote:
> manzur wrote: > > 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 Chris Uppal |
|