If the fractional part of x is halfway between two integers, one of which is even and the other odd, then the even number is returned. This behavior follows IEEE Standard 754.
However, based on the definition in the standard, I'm not sure this should hold for integers only. I would expect this would be used at arbitrary point, e.g. round(x=0.25, p=1) => 0.2 and round(p=0.35, p=1) => 0.4.
Proposed solution:
Clarify that the number should be rounded to the one with even least significant digit.
Process ID: round
Describe the issue: Documentation states:
However, based on the definition in the standard, I'm not sure this should hold for integers only. I would expect this would be used at arbitrary point, e.g.
round(x=0.25, p=1) => 0.2
andround(p=0.35, p=1) => 0.4
.Proposed solution: Clarify that the number should be rounded to the one with even least significant digit.