HackerRank- Python Floor, Ceil and Rint
given a 1-D array, A . Your task is to print the floor, ceil and rint of all the elements of A.
- import numpy
-
- numpy.set_printoptions(sign=' ')
-
- a = numpy.array(input().split(),float)
-
- print(numpy.floor(a))
- print(numpy.ceil(a))
- print(numpy.rint(a))