floor
The tool floor returns the floor of the input element-wise.
The floor of is the largest integer where I and I≤X. import numpy my_array = numpy.array([1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9])
print numpy.floor(my_array)
#[ 1. 2. 3. 4. 5. 6. 7. 8. 9.] ceil
The tool ceil returns the ceiling of the input element-wise.
The ceiling of is the smallest integer where I and I≥X. import numpy