You are viewing a single comment's thread. Return to all comments →
import numpy
numpy.set_printoptions(legacy='1.13')
my_arr = list(map(float, input().split()))
print(numpy.floor(my_arr)) print(numpy.ceil(my_arr)) print(numpy.rint(my_arr))
Seems like cookies are disabled on this browser, please enable them to open this website
Floor, Ceil and Rint
You are viewing a single comment's thread. Return to all comments →
code is
import numpy
numpy.set_printoptions(legacy='1.13')
my_arr = list(map(float, input().split()))
print(numpy.floor(my_arr)) print(numpy.ceil(my_arr)) print(numpy.rint(my_arr))