This is the documentation for the development version.
There are no official binaries for it; build it from the source code in git.
Download links on these pages work only after the release.
For the current release, see version 7.0.
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.3"
println(Math::Abs(-0.307)); // Will print "0.307"
println(Math::Abs(-42)); // Will print "42"