Math::Abs
- Math::Abs(x): number
-
Returns the absolute value of a number.
x |
number |
Input value. |
Return
Absolute value.
println(Math::Abs(12.3)); // Will print "12.300000"
println(Math::Abs(-0.307)); // Will print "0.307000"
println(Math::Abs(-42)); // Will print "42"