Returns the absolute value of a number.
abs (number)
- number
- Required. Any valid numeric expression.
The same as passed to the function.
#TODO
If the number is a complex number, its magnitude is returned.
If the number is an integer with base other than 10 the abs() function will return its value as a decimal integer.
>>> abs(-1)
1
>>> abs(0)
0
>>> abs(1)
1
>>> abs(3.14)
3.14
>>> abs(3 + 2j)
3.6055512754639896>>> abs(0x10)
16
>>> abs(0b10)
2
>>> abs(0o20)
16#TODO