double Vs Big Decimal in two different WebLogic servers

I had this strange problem:

One app doing some mathematical operations with doubles and showing the results formated for two decimal places worked well in one server but in another server the decimal places were always set to zero. Changing from doubles to BigDecimals everything worked well in the two servers.

I was wondering why!

Manuel Leiria

[371 byte] By [manuel.leiriaa] at [2007-11-27 11:56:30]
# 1

Floating point precision is a common point of confusion:

http://www.ibm.com/developerworks/java/library/j-jtp0114/

Jasprea at 2007-7-29 19:07:57 > top of Java-index,Java Essentials,Java Programming...
# 2

> Floating point precision is a common point of

> confusion:

>

> http://www.ibm.com/developerworks/java/library/j-jtp01

> 14/

But the same Java program should not perform differently on two different servers.

jbisha at 2007-7-29 19:07:57 > top of Java-index,Java Essentials,Java Programming...