Abs function

Category: Math

Summary

Returns the absolute value of a number.

Syntax

Returns a value of the same type that is passed to it specifying the absolute value of a number.

Example

Remarks
The absolute value of a number is its unsigned magnitude. For example, ABS(-1) and ABS(1) both return 1.

Microsoft Support Page

https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/abs-function

Back to Functions