Absolute Value
The absolute value of a number is its distance from zero on the number line, always a non-negative result.
Formula
|x| = x \text{ if } x \ge 0; \ -x \text{ if } x < 0
Definition
The absolute value of a number is how far it is from zero, regardless of direction, always positive or zero, written with vertical bars: $|5| = 5$ and $|-5| = 5$. For a real number $x$, $|x| = x$ if $x \ge 0$ and $|x| = -x$ if $x < 0$, with key properties $|x| \ge 0$, $|xy| = |x||y|$, and the triangle inequality $|x + y| \le |x| + |y|$; $|x - y|$ measures the distance between $x$ and $y$ on the number line. More abstractly, $|x|$ defines a norm on $\mathbb{R}$ ($|x| \ge 0$, $|x| = 0$ iff $x = 0$, $|cx| = |c||x|$, $|x+y| \le |x|+|y|$), generating the metric $d(x,y) = |x-y|$ that makes $\mathbb{R}$ a complete metric space; on $\mathbb{C}$, $|z| = \sqrt{a^2 + b^2}$ for $z = a+bi$ is the Euclidean norm, while on $\mathbb{Q}$ the $p$-adic absolute value $|x|_p = p^{-v_p(x)}$ gives a completely different metric.
Example
$|-8| = 8$ ($8$ steps from zero), $|3| = 3$, and $|0| = 0$; a temperature of $-10$ degrees and $+10$ degrees are both $10$ degrees away from zero. $|5 - 12| = |-7| = 7$ (the distance from $5$ to $12$), and $|(-3)(4)| = |-12| = 12 = |-3| \times |4|$. In the $3$-adic metric, the sequence $1, 3, 9, 27, 81, \ldots$ converges to $0$ because $|3^n|_3 = 3^{-n} \to 0$, and the $p$-adic numbers $\mathbb{Q}_p$ are the completion of $\mathbb{Q}$ under this absolute value, used throughout modern number theory.
Key Insight
Absolute value is like asking "how far?" not "which direction?" The triangle inequality is one of the most important inequalities in mathematics, generalizing to vectors, functions, and metric spaces, and forming the foundation of all distance-based analysis. Ostrowski's theorem classifies all absolute values on $\mathbb{Q}$: they are exactly the real absolute value, the $p$-adic absolute values, and the trivial one, and the choice among them determines the entire geometry of a number system.