[rfc] rint() rounds to even

Neil Booth neil@daikokuya.demon.co.uk
Mon Jan 29 13:37:00 GMT 2001


Ulrich Drepper wrote:-

> The function is rounding to the closest integer.  The documentation
> cannot and will not be changed since it is not required, other
> implementation can do something else.  If somebody relies on .5
> rounding in a certain way s/he is doing something wrong.

Then the fact that it is unspecified / undefined should be documented.

Neil.


More information about the Libc-alpha mailing list