Floor, Ceil and Rint

  • + 0 comments

    My compact solution…

    import numpy as np
    
    np.set_printoptions(legacy='1.13')
    
    a = np.array(input().split(), float)
    print(np.floor(a), np.ceil(a), np.rint(a), sep='\n')