Every element in a Python program is an object of a class. A number, string, list, dictionary, etc., used in a program is an object of a corresponding built-in class. You can retrieve the class name of variables or objects using the type() method, as shown below....
Thenumpy.floor()method returns the floor of the supplied array, element-wise. The floor of the numberxis the largest integeri, such thati<=x. I've also written an article onhow to round a float to N decimal places in Python.