>>> round(123,-2)
100.0
>>>
How to round it to 100 instead of 100.0?
int(round(123,-2))
The int function can be used to convert a string or number to a plain integer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With