Description:
Absolute value of a number.
In the PROMOTIC system it is better to use the Pm.Abs method.
Syntax:
Double Abs(Double number)
Parameters:
number | (Double) Any valid numeric expression. |
---|
Note:
The absolute value of a number is its unsigned magnitude. For example Abs(-1) and Abs(1) returns 1.
Example:
VBScriptSelect and copy to clipboard
Dim n
n = Abs(-1)
' Returns 1
n = Abs(1)
' Returns 1