commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukas Bradley <>
Subject Money Class?
Date Thu, 17 Mar 2005 21:41:26 GMT
I'm running (back) into the age old question of representing monetary 
values in Java.  Should I use a float and risk floating point errors, 
should I use int and hold cents (or pieces of the currency) or should I 
create a Money Class to handle both of these problems but create bulkier 

Has Commons approached this?  I don't need a fully I18N solution, I just 
need something that will allow for addition, subtraction, and 
calculation of percentages.

Any help or advice appreciated.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message