Important Notice:

Course Content
The Calendar Module
Library Function/Predefined Functions
0/4
Sys Module
Library Function/Predefined Functions
0/2
OS Module
Library Function/Predefined Functions
0/2
Functions in Python (Chapter-10) M3-R5
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

 

error: Content is protected !!