Soooo I wasn't sure if no one replied because a) this question was too dumb or b) this question was too hard... it was definitely the former. But I'll post the answer, anyway:
I forgot to keep in mind - when reading the documentation, assume that a >>> from numarray import * occurred first. So here's the way to do it: >>> import numarray >>> a = numarray.array([1.6, 1.9, 2.1]) >>> rounded_a = numarray.around(a) and rounded_a then equals ([2., 2., 2.]) - Chris [EMAIL PROTECTED] (Chris P.) wrote in message news:<[EMAIL PROTECTED]>... > Given an array called 'x' (created using the numarray library), is > there a single command that rounds each of its elements to the nearest > integer? -- http://mail.python.org/mailman/listinfo/python-list