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


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


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

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250