kingsor / daily-money

An android application that helps you to record your daily expenses.
0 stars 0 forks source link

Uses double for currency #61

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Double type shouldn't be used for currency as it's binary and can't represent 
exact decimal values. This may lead to obscure and hard to find bugs.

Currency should be stored and manipulated as BigDecimals.

See http://www.javapractices.com/topic/TopicAction.do?Id=13 for more details.

Original issue reported on code.google.com by divided.mind on 19 Jun 2011 at 1:45