r/AskComputerScience • u/Solomonspin • Nov 23 '15
Do computers make calculation errors?
If computers can make billions of calculations per second, is there an expected calculation error rate they make? If so, is there some sort of correction process? If the calculations are really just tiny jolts of electricity going through logic gates, is there ever chance for an error? If I give excel 100,000 cells to perform a calculation on, is it possible for one of the calculations to be incorrect mathematically?
Thank you.
30
Upvotes
24
u/zombarista Nov 23 '15
The more pressing issue of incorrect calculation is that it is difficult to represent quantities like
1/3with bits and so there are precision issues that programmers need to be constantly aware of. In finance, this is particularly problematic, so reliable software works in the smallest possible denomination of a currency. For example, you see $4.25, but the computer is working with this amount as 425 cents behind the scenes.So the answer to the title question "Do computers make calculation errors?" is "yes, all the time" but not for any of the reasons you proposed.
Hope this helps.