Abs
Abs[z] gives the absolute value of the real or complex number z.
Examples
Absolute value of real numbers:
Abs[-5]
(* 5 *)Absolute value (modulus) of a complex number:
Abs[3 + 4 I]
(* 5 *)Please visit the official Wolfram Language Reference for more details.