Abs - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Notation
Description
Returns the absolute value of the input. So, abs(-12.5) = 12.5, and abs(12.5) = 12.5.
Parameters
- x: The number whose absolute value is to be returned.
Return Values
double: Returns the absolute value of a given number.
Example Call
// demonstrates obtaining the absolute value of a given number
var xa;
xa = abs(x);
NOTOC