ABS()

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)

  • x - Any numeric type.

See also

CEILING()

FLOOR()

ROUND()

Was this helpful?
How can we improve it?
Search
Clear search
Close search
Google apps
Main menu
Search Help Center
false
false
false
false