Returns f rounded to the nearest integer.
If the number ends in .5 so it is halfway between two integers, one of which is even and the other odd, the even number is returned.