commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Farmer <feedb...@steve-farmer.com>
Subject Re: Money Class?
Date Thu, 17 Mar 2005 21:55:23 GMT
> Should I use a float and risk floating point errors...

In my experience floating point errors are not a "risk", they are a 
"certainty".

> ... should I create a Money Class to handle both of these problems but 
> create bulkier code?

I've never had an occasion to try it, but I've always thought that 
java.math.BigDecimal would be good choice for representing money.

Hope this helps,
Steve Farmer


---------------------------------------------------------------------
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