The absolute value of a number is

|x| = x if x≥0

|x| = -x if x<0