Articles → Numpy → ceil function in numpy

ceil function in numpy






Purpose





Example


import numpy as np

in_array = np.array([-1.5, -0.5, 0, 0.5,1.5] )


print("Ceil Operation:", np.ceil(in_array))



Output



Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, June 21, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250