Arithmetic absolute value
Returns the absolute value of x
.
Sample usage
ABS(0)
returns 0
(Number
)
ABS(1)
returns 1
(Number
)
ABS(-1)
returns 1
(Number
)
ABS(0.0)
returns 0
(Decimal
)
ABS(3.14)
returns 3.14
(Decimal
)
ABS(-3.14)
returns 3.14
(Decimal
)
Syntax
ABS(x)
See also
CEILING()
FLOOR()
ROUND()