The absolute value function guarantees that the value must always be zero or positive.
x can be any value: positive, zero, or negative but y can never be any negative number.
Examples:
--- if x = 5, then y = |x| = |5| = 5
--- if x = 0, then y = |x| = |0| = 0
--- if x = -5, then y = |x| = |-5| = 5
The absolute value function guarantees that the value must always be zero or positive.
x can be any value: positive, zero, or negative but y can never be any negative number.
Examples:
--- if x = 5, then y = |x| = |5| = 5
--- if x = 0, then y = |x| = |0| = 0
--- if x = -5, then y = |x| = |-5| = 5