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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to