Skip to main content Skip to complementary content

ABS

Computes the absolute value of the given input.

Syntax

ABS(X)

Arguments

X

Type: numeric

A numeric value.

Returns

Type: same as input

The absolute value of X.


Examples

X Output
-3 3
3 3
1 + 1 2
0 0
1.1 1.1
-1.1 1.1
-1 - 5 6

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!