Floor, Ceil and Rint

  • + 0 comments
    import numpy
    numpy.set_printoptions(legacy="1.13")
    l = list(map(float, input().split()))
    np_arr = numpy.array(l)
    print( numpy.floor(np_arr) )
    print( numpy.ceil(np_arr) )
    print( numpy.rint(np_arr) )