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 -
- Working with Money in Java - This tutorial explains why we shouldn't use double in monetary calculation.
- 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.
- Some Things You Should Know About Floating-point Arithmetic, Performing Exact Calculations With Floating-Point Numbers - Java Tech Tips from Sun.
- Difference between BigDecimal and Double? - A java forum post.
- 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:
Post a Comment