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

`abs(x)`

Name | Description |
---|---|

x | A number |

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`

` abs(-3) = 2`

` abs(-2) = 2`

` abs(-1) = 1`

` abs(0) = 0`

` abs(1) = 1`

` abs(2) = 2`

` abs(3) = 3`

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.

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