abs()
Table of Contents
Overview
The abs() function takes a number as an argument, and returns the absolute value of that number, i.e., the number without a sign.
Return Type
- Decimal
Syntax
(OR)
Parameter | Description | Data type |
---|---|---|
<variable> | Variable which will contain the returned value. | DECIMAL |
<number> | The number whose absolute value will be returned. | NUMBER or DECIMAL |
Examples
absValue = number.abs(); // returns 15.50