ABS()

Syntax. ABS(number)

Definition. This function returns the absolute value of a number. The absolute value of a number is the number without its sign.

Argument

Background. Consider the following scenario: The integers 3 and –3 are located respectively on the right and left sides of 0 on a number line. However, both integers have the same distance to 0. Thus, both numbers have the same absolute value (see Figure 16-1).

Both integers are the same distance from 0.

Figure 16-1. Both integers are the same distance from 0.

Absolute values are enclosed in two vertical bars:

|a| = |-a|

Example. Absolute values are used in numerous math formulas, for example, in the definition of the artanh. In the following formula, the value x is defined as an absolute value:

image with no caption

More examples for this function are:

See Also

IMABS(), SIGN(), engineering functions