Get Absolute Value Method
The Get Absolute Value method returns the absolute value of the value that the number argument contains. If it cannot convert this value to a number, then it returns NaN.
Format
Math.abs(number)
The following table describes the arguments for the Get Absolute Value method.
| Argument | Description |
|---|---|
number |
A numeric literal or numeric variable. |