In the documentation the phrase "nearest integer" is ambiguous for half-integers.
In addition, this function rounds half integers to plus and minus infinity (introducing a statistical bias when negative and positive values are not equally likely to occur). The most common way of rounding half-integers is to the nearest even integer (e.g., IEEE 754).