Articles → Numpy → Floor Function In Numpy

Floor Function In Numpy






Purpose





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


Picture showing the output of the floor function in numpy
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Thursday, June 20, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250