static float abs(float a)
static int abs(int a)
_INSERT_METHOD_SIGNATURE_HERE_
Description:
abs(float a) method:
This method returns the absolute value of a float value. If the argument is not negative, the argument is returned. If the argument is negative, the negation of the argument is returned.
Note
abs(int a) method:
This method returns the absolute value of an int value. If the argument is not negative, the argument is returned. If the argument is negative, the negation of the argument is returned.
Note
Example
Draw.writeText("data: " + Math.abs(-3.2315523f));
The example above draws the calculated value to the screen.