Returns the absolute value of x.
This is an alias of the standard Math.abs function in JavaScript.
- x
- The number.
Example: Get the absolute value of a positive number
Code:Engine.Math.Absolute(16);
Output:16
Example: Get the absolute value of a negative number
Code:Engine.Math.Absolute(-23);
Output:23