This content has been marked as final. Show 4 replies
Why did the thread title change to concurrency?
oh and now its "java", even less helpful.
PhHein wrote:Do you have a cliff notes version? My brain hurts :(
Read this: http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html
It's interesting. I have a calculator that uses BigDecimal. When I use it to multiply ( (10^9) - (10^-6) ) ... it does the right thing. But when I raise the first to the power of 10 instead of 9, then it does not. In both cases 10^-6 produces .000001, but in the subtraction with the later it breaks down. I didn't complete my code review yet to see why, but with BigDecimal.subtract I know that is the MathContext is ommitted - which it is in my case - the scale is determined by the larger "scale" of the two numbers.
The OP did not mention how the calculation was performed, so I don't know if this information is of any value or not.
Edited by: abillconsl on May 23, 2013 11:55 AM