Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Round to nearest 100th

$
0
0
I am a little confused about how to round a field to the nearest 100th. Would I use math.ceil() or the round()?

Code:

math.ceil([field]/100)*100
Does this only round down though?

Thanks

Viewing all articles
Browse latest Browse all 2485

Trending Articles