Thanks Siggy. I'll keep that in mind. I thought there may be these kinds of issues. -- >If you go with BigDecimal, be aware that it breaks the >equals-hashcode-compareTo contract, in that "2.0" does not equal() >"2.00" <http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html#equals %28java.lang.Object%29>, >and they will almost always have different hashCodes, even though >compareTo() will tell you they are equal. > >This can cause problems if you put BigDecimals in a Set or Map and expect >them to behave intuitively. > >Siggy > >Ph.D student in Computer Science >George Mason University >http://mason.gmu.edu/~escott8/ >