About Lesson
fabs():-
It function returns the absolute value of x.
Example:-
|
import math print(math.fabs(-35.3)) print(math.fabs(-35.50)) print(math.fabs(10.0)) |
Output 35.3 35.5 10.0
|
Important Notice:
It function returns the absolute value of x.
Example:-
|
import math print(math.fabs(-35.3)) print(math.fabs(-35.50)) print(math.fabs(10.0)) |
Output 35.3 35.5 10.0
|