And if not for the abs function, to turn a negative value into a positive it's x = x - (x*2)
x = -1 - (-1 * 2)
x = -1 - (-2)
x = -1 + 2
x = 1
So, though you didn't need to do this for this example as we have the function, remember, there's *always* a workaround
-Anthony