Path: blob/master/Data Science using Python/Day 1 Mathematical Analysis in Python.ipynb
3074 views
Kernel: Python 3 (ipykernel)
In [1]:
Math methods
help()
In [2]:
Out[2]:
20.085536923187668
In [3]:
Out[3]:
1.5707963267948966
In [ ]:
In [4]:
Out[4]:
9.0
In [5]:
Out[5]:
10.0
In [6]:
Out[6]:
40320
In [7]:
Out[7]:
3.3219280948873626
In [8]:
Out[8]:
3.32
In [9]:
Out[9]:
-14
20
In [10]:
Out[10]:
89.9922
The math.ceil() method rounds a number upwards to its nearest integer, and the math.floor() method rounds a number downwards to its nearest integer, and returns the result
In [11]:
Out[11]:
10
9
In [12]:
Out[12]:
3.141592653589793
In [13]:
Out[13]:
52.875