Python Function Reference

math.fabs
Return the absolute value of x as a float.
Python 3.13
math.fabs(x)
x
The number.
Examples
Python 3.13
>>> import math
>>> math.fabs(-5.5)
5.5