newtonandebe / daily-money

Automatically exported from code.google.com/p/daily-money
0 stars 0 forks source link

Uses double for currency #61

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 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