Talk:Price fraction: Difference between revisions

no, java Currency doesn't do that...
(no, java Currency doesn't do that...)
Line 10:
Floating point for money? Don't they teach kids anything these days? --[[User:IanOsgood|IanOsgood]] 20:15, 15 March 2010 (UTC)
:I've had that exact conversation with a friend in the past few weeks. All I can say is... I (at least) never think of the problems, or the alternatives. -- [[User:Eriksiers|Eriksiers]] 20:44, 15 March 2010 (UTC)
:: Two topics on the original wiki, [http://c2.com/cgi/wiki?FloatingPointCurrency Floating Point Currency] and [http://c2.com/cgi/wiki?MoneyObject Money Object], contain many anecdotes, cautionary tales, and useful links. For example, Java should use a java.util.Currency object. For a toy problem like this, using an integer in units of cents should suffice. --[[User:IanOsgood|IanOsgood]] 01:29, 16 March 2010 (UTC)
Anonymous user