Transforming the absolute-value function