Skip to content
Snippets Groups Projects
Commit 372dacb7 authored by Sander Snoo's avatar Sander Snoo
Browse files

Fixed rounding of negative numbers

parent 51c9b697
No related branches found
No related tags found
No related merge requests found
......@@ -4,4 +4,4 @@ def iround(value):
'''
Fast implementation of round which uses half-up, i.s.o. half-even rounding.
'''
return np.int_(value + 0.5)
return np.floor(value + 0.5).astype(int)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment