The function works for all numerical inputs within the range of -128 to 128. However, there is an interval around 0 where the function displays unexpected behavior. Specifically, when the input is close to 0, the function rounds the result to the nearest integer, which can lead to some unexpected output values.

