Action
Returns the absolute value of a number.
Syntax
nAbsValue = Abs (nNumber)
Variable
|
Description
|
nAbsValue
|
The absolute value of
nNumber.
NUMBER.
|
nNumber
|
The number for which to compute the absolute value.
NUMBER.
|
Notes
The absolute value of a number is equal to its unsigned magnitude.
Example
[-] Testcase AbsExample ()
[ ] Print (Abs (-14.356)) // Prints 14.356000
[ ] Print (Abs (87.4)) // Prints 87.400000
[ ] Print (Abs (-892384)) // Prints 892384