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)

  • x - Any numeric type.

See Also

CEILING()

FLOOR()

ROUND()

Did this answer your question?