noydb <jenn.du...@gmail.com> writes:

> If one has a floating number as a string, is there a spiffy way to
> round that string-number UP to the nearest 100?
>
> XstrNmbr = 3579.127893 -- would want to round that to 3600.
>
> Thanks for any help!

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

HTH

-- 
Arnaud
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to