Absolute Value Operator

absolute value operator notation

The notation for taking the absolute value is two vertical lines on either side of the expression being evaluated. Taking the absolute value of a number is the same as finding the distance from zero on the number-line of the number.

Basic Examples

Usage

In practice, the absolute value function can be used to calculate the absolute value of a number.

Formulas

Distance Between Two Points 1D

The distance between two points, in one dimension, is given by the absolute value of the difference between the two values.

Distance Between Two Points 2D

The distance between two points, in two dimensions, is given by solving pythagorean's theorem for the length the hypotenuse of the right triangle formed by the two points.

Links