I\'m having problems rounding. I have a float, which I want to round to the hundredth of a decimal. However, I can only use .round which basically turns it in
.round
You can also provide a negative number as an argument to the round method to round to the nearest multiple of 10, 100 and so on.
round
# Round to the nearest multiple of 10. 12.3453.round(-1) # Output: 10 # Round to the nearest multiple of 100. 124.3453.round(-2) # Output: 100