Articles → Numpy → Ceil Function In NumpyCeil Function In NumpyIn this article, we will discuss ceil function in NumPy.Purpose Ceil function of number x returns the smallest number I where I >=x.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 EnlargePosted By - Karan Gupta Posted On - Friday, June 21, 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("Ceil Operation:", np.ceil(in_array))
Query/Feedback