How to round a number to the nearest 100 (closest to multiples of 100) in Python

1 Answer

0 votes
print(round(138, -2))

print(round(238, -2))

print(round(349, -2))
print(round(350, -2))
print(round(351, -2))





'''
run:

100
200
300
400
400

'''

 



answered Jul 16, 2022 by avibootz

Related questions

...