round numbers in an array without importing Numeric or Math?

skip at pobox.com skip at pobox.com
Tue May 16 14:54:29 EDT 2006


    Lance> May have a complicating issue with the array?  Have the numbers
    Lance> have been interpreted as strings?  I have been pulling them from
    Lance> a Word doc using regex's

[int(float(x)+0.5) for x in Test]

S



More information about the Python-list mailing list