File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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)
Trouble with BigDecimal and Double
Sinking in float
float or double
Precision and scale of a decimal value
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015