[Matrix-SIG] no round() in NumPy?

Just van Rossum just@letterror.com
Tue, 20 Apr 1999 12:46:30 +0200


Hi there,

I need to round an array of floats so I can safely convert them to
integers. I can't seem to find a round() function in NumPy, and since I
have to deal with negative numbers as well as positive I can't just add 0.5
and floor() 'em. Am I missing something obvious? What is the NumPy way of
doing this?

Thanks,

Just