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



Click to Enlarge


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

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250