The function f(x) takes a numerical input x and multiplies it by a constant depending on the sign of x. For positive inputs, the constant is 2, and for negative inputs, the constant is -1. The function also rounds the input to the nearest integer.

