Rounds a number to the closest integer.