Absolute Value Function

This figure illustrates the plot of the absolute value function.
Figure: 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

The absolute value function returns the distance from zero of the input number. For example, the absolute value of negative is equal to .

 abs(-3) = 3

Examples

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

Notation

The absolute value function often appears in formulas where the sign of a number doesn’t matter. For example, the function appears in the distance between two points formula. Also note, that the function is often written using two vertical lines on either side of the expression that is being operated on.

Absolute Value

The notation for taking the absolute value is two vertical lines on either side of the expression being evaluated.