Abs[x]
Abs[-3]
Abs returns the magnitude of complex numbers:
Abs
Abs[3 + I]
Abs[3.0 + I]
Plot[Abs[x], {x, -4, 4}]