## Solution

When a floating-point number is converted to an integer, it is rounded to the

__nearest__ integer. The only exception to this are numbers exactly halfway between two integers, such as 2.5, 3.5, etc. In this case, the number is rounded to the nearest

__even__ integer. For example, 2.5 would be rounded to 2, and 3.5 would be rounded to 4. This is consistent with the

*IEEE Standard 754*.