The function takes a numerical input and returns a value that is twice the input, except for negative inputs, which return values that are twice the absolute value of the input.

