The function takes a numerical input and returns the input multiplied by 2, except for negative inputs, which are returned as negative.

