round(65253, -3) might be what you are looking for...
On Thu, Apr 30, 2015, at 21:49, Seymore4Head wrote: > I have this page book marked. > https://mkaz.com/2012/10/10/python-string-format/ > > I am getting numbers from sixty thousand to two hundred thousand. > I would like to round them to the nearest thousand. > So 65,253 should read 65,000. > How? > > Total=2100 > for x in range (10,35): > count=1000/x > print ("Foo {:7,.0f} Fighters".format(Total*count)) > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list