Modulus |x| of a real number x is the non-negative value of x without regard to its sign .Namely,
|x|=x for a positive x,
|x|=−x for a negative x (Here (−x) is positive)
For any real number x, the absolute value or modulus of x is denoted by |x|.
From an analytic geometry point of view,
The absolute value of a real number is that number's distance from zero along the real number line, and more generally the absolute value of the difference of two real numbers is the distance between them. That’s why absolute value of x is thus always either positive or zero, but never negative, since x<0 implies −x>0 Since , Distance can’t be negative .
|a−b| indicates distance from a to b along the real number line i.e. |a−b|=a−b
This is also defined for complex numbers as well as real numbers. If z=x+iy, then |z|=|x+iy|=√x2+y2. It is the distance of z in the complex plane from the origin O.
For example :
|5| indicates distance from 0 to 5 along the real number line i.e. |5|=(5−0)=5
|−3| indicates distance from 0 to −3 along the real number line i.e. |−3|={0−(–3)}=–(–3)=3