Name

abs — Returns the absolute value of the input number.

Syntax

abs(number)
              

The ABS function has the following arguments:

number

The number or integer of which you want the absolute value

Description

The abs function returns the absolute value of the input number. The value returned will have the same data type as the input (for integer input will return an integer, for number input will return a number).

Examples

Formula

Description

Result

abs

Absolute value of 34

34

abs(-22)Absolute value of -2222
abs(-163.77)Absolute value of -163.77163.77