Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
math.fabs
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