Main » Articles » Computer Science » 2014 |
Calculation ERRORS
Computers do lots of calculations - millions or more per second. Unfortunately, they sometimes make mistakes. We call these ERRORS. They are not actually caused by computer "mistakes", because the computer is following programming that a human being wrote. And computers do follow that programming exactly. So if there is a mistake, it came from a human beings. Computers are perfectly RELIABLE (well, maybe 99.999%). We will look at some common ERRORS that occur in computer programs - especially Java programs. For example, this command does NOT print what you expect. System.out.println(0.1 + 0.2 + 0.3); Here is a practice assignment, doing calculations. | |
Views: 230 | Rating: 0.0/0 |
Total comments: 0 | |