We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Numpy
- Floor, Ceil and Rint
- Discussions
Floor, Ceil and Rint
Floor, Ceil and Rint
Sort by
recency
|
272 Discussions
|
Please Login in order to post a comment
dont miss this numpy.set_printoptions(legacy='1.13')
import numpy as np np.set_printoptions(legacy='1.13') m = (list(map(float,input().split()))) coms = 'np.floor np.ceil np.rint'.split() [print(eval(f'{com}({m})')) for com in coms]
import numpy as np
np.set_printoptions(legacy='1.13')
def floor_ceil_rint(x): function_list = ['floor' ,'ceil' ,'rint']
sample_input = list(map(float, input().split())) floor_ceil_rint(sample_input)