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