Thursday, February 22, 2007

Take care with math in Java

Doing some math these days with Java. As you may already guessed doing math in Java is ugly and circumstantial compared to Smalltalk.

Especially take care if you use double values. Class BigDecimal can help here - but there are pitfalls, especially when using the wrong constructor.

No comments:

Post a Comment