commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukas Bradley <lu...@somnia.com>
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 
code?

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: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message