Java Reference
In-Depth Information
.3650000E+7
So we might as well not have bothered. The problem lies directly with the fact that we only carry 7
digits precision. The 7 digits of the larger number are not affected by any of the digits of the smaller
number because they are all further to the left. Funnily enough, you must also take care when the
numbers are very nearly equal. If you compute the difference between such numbers you may end up
with a result that only has one or two digits precision. It is quite easy in such circumstances to end up
computing with numbers that are total garbage.
Search WWH ::




Custom Search