Join GitHub today
[Question] rint() or round() #1402
My original question was: why do you use
@matthew-brett told me that there's only a technical advantage: it was simpler to code. Can you confirm this? There's no other good reason to do this?
My real question is more: will my results be equally valid if I change
I guess your results will change, sure, but I guess also they won't change very much, and it will be difficult to detect which is "correct".
I believe the 'round' behavior (round to even) reduces bias, but I'm no expert.
To me, it looks as if
We copied this from numpy - see: https://github.com/numpy/numpy/blob/master/numpy/core/src/npymath/npy_math_internal.h.src#L290
I've just sent an email to the list to ask for clarification.