Numpy ceil()

This function returns the ceil value of the input array elements. The floor of a number x is i if i is the smallest integer such that, i>=x.

Syntax

Parameters

  1. array: Array elements whose ceil values are to be calculated.

Return

An array containing the ceil values is returned.

Example

Output:

Input array: [0.23, 0.09, 1.2, 1.24, 9.99]
Output array: [ 1.  1.  2.  2. 10.]
Input array: [145.23, 0.12, 12.34, 123]
Output array: [146.   1.  13. 123.]

Next TopicNumpy fix()




Latest Courses