Re: sorry .09 instead of .08




"zero" <zero@xxxxxxx> wrote in message
news:Xns975B380BB167zerothishi@xxxxxxxxxxxxxxxxx
> Thomas Hawtin <usenet@xxxxxxxxxxxxxxxxx> wrote in
> news:43dd47b0$0$1488$ed2619ec@xxxxxxxxxxxxxxxxxxxxxxxxxx:
>
> > James Westby wrote:
> >>
> >> The problem is that you can't use floating point arithmetic (doubles)
> >> to do precise arithmetic. If possible then you should try using fixed
> >> point arithmetic. e.g.
> >
> > It's probably better to use BigDecimal in most situations.
> >
> > Tom Hawtin
>
> BigDecimal will be slower though. If the values are all currency values,
> with only 2 numbers after the decimal point, ints are a good choice.

Are you saying that billionaires don't exist? My dream has been shattered!!
Use a long - 9223 trillion dollars ought to be enough for anybody, right
Bill?

--
Tony Morris
http://tmorris.net/


.