|
Truncation
A Programming Pattern |
|
Prof. David Bernstein |
| Computer Science Department |
| bernstdh@jmu.edu |
526 pieces is 526 / 10 or
52 batches((1996 + 87) / 10) * 10
or 2080
((1996 + 87) / 100) * 100
or 2000
(a / b) * b does not equal
a