Lance Hoffmeyer <[EMAIL PROTECTED]> writes: > Is there an easy way to round numbers in an array? > > I have > Test = [1.1,2.2,3.7] > > and want to round so the values are > > print Test [1,2,4]
[int(x+0.5) for x in Test] 'as -- http://mail.python.org/mailman/listinfo/python-list