Returns the absolute value of the number. (Converts all negative values to positive values).
| Before: |
Code: |
After: |
| -3 |
Abs(-3) |
3 |
| 3 |
Abs(3) |
3 |
| -0.234 |
Abs(-0.234) |
0.234 |
Related functions:
Atn, Cos, Exp, Fix, Hex, Int, Log, Oct, Rnd, Round, Sgn, Sin, Sqr, Tan |