Articles → Numpy → Floor Function In NumpyFloor Function In NumpyIn this article, we will discuss floor functions in NumPy.Purpose The floor function takes an array as input and returns the floor element-wise. The floor of a number x is the largest integer I where I<=x.Example import numpy as np in_array = np.array([-1.5, -0.5, 0, 0.5,1.5] ) print("Floor Operation:", np.floor(in_array))Output Click to EnlargePosted By - Karan Gupta Posted On - Thursday, June 20, 2019 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
import numpy as np in_array = np.array([-1.5, -0.5, 0, 0.5,1.5] ) print("Floor Operation:", np.floor(in_array))
Query/Feedback