Articles → Numpy → Floor Function In NumpyFloor Function In NumpyIn this article, we will discuss about floor function in numpy.Purpose Floor function take an array as input and returns the floor element-wise. 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