Find the absolute value (magnitude) of any real number and its distance from zero.
The absolute value of a number is its distance from zero on the number line, regardless of direction. For any real number x, |x| = x if x ≥ 0, and |x| = −x if x < 0.
Absolute Value
|x| = x if x ≥ 0; |x| = −x if x < 0
It is always non-negative. |0| = 0, and for any non-zero number x, |x| > 0.
It measures magnitude or distance. Common uses include error measurement (|measured − actual|), distance between points, and defining intervals on the number line.