Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
help understanding Java-7(Sum)
Joined: Jun 17, 2008
Jun 29, 2008 14:25:00
Not sure how to ask this without giving too much away. In Java-7, no statement of the precision required is given. I think this means I should do my equivalence check assuming infinite precision. Is that correct? (Hope I'm not saying too much.)
Thanks very much.
Marilyn de Queiroz
Joined: Jul 22, 2000
Jun 29, 2008 20:22:00
At this point, yes.
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
I agree. Here's the link:
subject: help understanding Java-7(Sum)
float or double
Precision and scale of a decimal value
Trouble with BigDecimal and Double
Sinking in float
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014