ReferenceFunctionsMath Functions
ABS
Returns the absolute value of a number.
Summary
Returns the absolute value of a number.
Remarks
- Negative numbers are returned as positive values.
- Zero and positive numbers are unchanged.
- Errors are propagated.
Examples
Absolute value of a negative number
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
12.5
Absolute value from a cell reference
Grid
| Cell | Value | |
|---|---|---|
Formula
=
Result
Not evaluated yet.
Expected
42
Related functions
FAQ
How does ABS handle errors or non-numeric text?
Input errors propagate, and non-coercible text returns a coercion error.
Runtime metadata
Category
Math
Signature
ABS(arg1: Number)Arity
min 1, max 1
Arguments
arg1Number · Scalar · coercion NumberLenientText
Caps
PURE
Source