Re: Rounding a number

2015-04-30 Thread Thijs Engels
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

Re: Algorithms in Python

2012-01-25 Thread Thijs Engels
I assume you have seen this book? http://www.apress.com/9781430232377 Thijs On Wed, Jan 25, 2012, at 15:36, Chetan Harjani wrote: > Is there any book or site on python algorithms which asks more and > teaches less, I don't want to get bored, and at the same time I want > to learn and act more. I

Re: os.path.dirname(sys.argv[0]) always returns nothing

2011-08-01 Thread Thijs Engels
On Mon, 01 Aug 2011 10:38 -0700, "happykid" wrote: > I want to use this function to get the directory path of the running > script, but it always returns empty string. Can anyone help me solve > this? Thank you. > -- > http://mail.python.org/mailman/listinfo/python-list I think this is what you