On 10/02/2012 02:25, noydb wrote:
That {>>> (3219 + 99) // 100} doesnt work if the number is other then 4 digits.(for rounding up to nearest 100):(3219 + 99)//10033(3289 + 99)//10033(328678 + 99)//1003287(328 + 99)//1004
>>> (3219 + 99) // 100 * 100 3300 >>> (3289 + 99) // 100 * 100 3300 >>> (328678 + 99) // 100 * 100 328700 >>> (328 + 99) // 100 * 100 400 Those are all rounded up to the nearest 100 correctly. -- http://mail.python.org/mailman/listinfo/python-list