print(mathematics.fabs(-2.5))
Run the program, the result is:
2.5
See also: Built-in Python functions