Integer arithmetic

The fourth line of output in Figure 2 shows that when an integer value is divided by another integer value, the result is also an integer value.

Since an integer value doesn't have a fractional part, the fractional part of the result is simply discarded.

(Note that rounding does not occur in this case.)

This can often lead to logical errors, which produce incorrect results, and which are difficult to find and fix.