Math Libraries



#ceil:

         ceil are used for those type of value which is bigger than given number.

          

import math

print(math.ceil (2.2))


output:

----------------------------------------------------------------------------------------------------------------------------


#floor:

           floor are used for those type of value which is smaller than given number.

import math

print(math.floor(2.2))


output:



-------------------------------------------------------------------------------------------------------------------------


#remainder

                   They  are used to  define remainder in which two values.

import math

print(math.remainder(9,2))


output:



--------------------------------------------------------------------------------------------------------------------------

#sqrt
      
        They are used for square root.


import math
print(math.sqrt(15))


output:



----------------------------------------------------------------------------------------------------------------------------