abs (Math)

Returns absolute value.

Arguments

number0
is an integer or real number.

Return values

number1
is the absolute value of
number0
.

Example

-2 abs print LF print -1.0 abs print
Output:
2 1.000000