Absolute Value Function

Absolute Value Function

Summary

The absolute value returns the distance from zero of the input.

Syntax

abs(x)

Arguments

Name Description
x A number

Usage Notes

Output

The absolute value function returns the distance from zero of the input number.

 abs(-3) = 3
 abs(-2) = 2
 abs(-1) = 1
 abs(0) = 0
 abs(1) = 1
 abs(2) = 2
 abs(3) = 3