Returns the absolute value of a number.
Arguments
Arguments | |
---|---|
x |
An integer or floating-point number. |
Raised exceptions
Exceptions | |
---|---|
TypeError |
If x is not an integer or floating-point number. |
ValueError |
If x is MinInt64. |
Examples
# Return absolute value of a number # For example, returns `123` - returnStep: return: ${math.abs(-123)}