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 numpymy_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 numpymy_array = numpy.array([1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9])
print numpy.ceil(my_array)
#[ 2. 3. 4. 5. 6. 7. 8. 9. 10.]

rint
The rint tool rounds to the nearest integer of input element-wise.

import numpymy_array = numpy.array([1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9])
print numpy.rint(my_array)
#[ 1. 2. 3. 4. 6. 7. 8. 9. 10.]

--

--