This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Cattle Drive and the fly likes help understanding Java-7(Sum) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "help understanding Java-7(Sum)" Watch "help understanding Java-7(Sum)" New topic

help understanding Java-7(Sum)

Daniel Loranz
Ranch Hand

Joined: Jun 17, 2008
Posts: 41
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
Posts: 9044
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)
Similar Threads
float or double
Precision and scale of a decimal value
Sinking in float
Trouble with BigDecimal and Double