Show that is the closest integer to the number .x, except when x is midway between two integers, when it is the larger of these two integers.

Solution:Step 1In this problem we are asked to show that the closest integer to the number x is, except when x is midway between two integers, then it is the larger of these two integers.