The function takes a numerical input and either scales it by a factor