Use BigDecimal Instead of Double Data Type

by mingoto

Use BigDecimal Instead of Double Data Type
In certain situations, you need to show the exact decimal values. If you use the double data type, you need to truncate the decimal values. To avoid truncation while obtaining proper decimal values, you can use BigDecimal instead of double.

http://www.devx.com/tips/Tip/31554