WLJS LogoWLJS Notebook

RealAbs

RealAbs[x] gives the absolute value of the real number x.

Examples

Get the absolute value of a negative number:

RealAbs[-5]
(* 5 *)

RealAbs works with symbolic expressions:

RealAbs[-x] /. x -> 3
(* 3 *)

Please visit the official Wolfram Language Reference for more details.

On this page