Monday, September 24, 2007

Dobule Vs. BigDecimal - Some Pointers

Few days ago I read some articles, discussions about Double, BigDecimal, floating-point standard and working with money in Java. Here is few links which I want to share -

  1. Working with Money in Java - This tutorial explains why we shouldn't use double in monetary calculation.
  2. Fixed, Floating, and Exact Computation with Java's Bigdecimal - A more technical discussion of BigDecimal. To be honest I couldn't understand every point of this article.
  3. Some Things You Should Know About Floating-point Arithmetic, Performing Exact Calculations With Floating-Point Numbers - Java Tech Tips from Sun.
  4. Difference between BigDecimal and Double? - A java forum post.
  5. What Every Computer Scientist Should Know About Floating-Point Arithmetic, How Java's Floating Point Hurts Everyone Everywhere - These two classic but lengthy documents are purely technical. I'm Still to read these (or may be I'm not brave enough to read these).

0 comments: