|x|
x if x>=0-x if x<0
The expression |x| is called the absolute value of x, and its value is the distance of x from zero on the number line. If x is a positive number or zero, then |x| equals to x. If x is a negative number, then |x| equals to the opposite of x, which is -x. For example, if x is 3, then |x| is 3 because 3 is 3 units away from zero. If x is -5, then |x| is 5 because -5 is 5 units away from zero. In summary, the absolute value function gives us the positive value of a number, regardless of its sign.
More Answers:
[next_post_link]