abs
Absolute value.
Syntax
Section titled “Syntax”v = abs(number)Description
Section titled “Description”Returns the absolute value of number — |number|. For complex numbers, returns the modulus.
Examples
Section titled “Examples”abs(-5) % 5abs(3+4i) % 5See also
Section titled “See also”sign— Sign of a number.