Rounding up to the next 100

Arnaud Delobelle arnodel at googlemail.com
Thu Jan 21 16:36:06 EST 2010


Arnaud Delobelle <arnodel at googlemail.com> writes:


> >>> XstrNmbr = 3579.127893

I meant
>>> XstrNmbr = "3579.127893"

> >>> round(float(XstrNmbr), -2)
> 3600.0

-- 
Arnaud



More information about the Python-list mailing list