The function f(x) takes a numerical input and returns the nearest integer to that input. For positive inputs, it rounds up to the nearest integer. For negative inputs, it rounds down to the nearest integer.
