SyntaxFix
Write A Post
Hire A Developer
Questions
Another option which doesn't require numpy is:
precision = 2 myRoundedList = [int(elem*(10**precision)+delta)/(10.0**precision) for elem in myList] # delta=0 for floor # delta = 0.5 for round # delta = 1 for ceil