The function takes a numerical input value and returns its double, except when the input is negative, in which case it returns a very large negative value.

