Hacker News new | ask | show | jobs
by tavianator 706 days ago
In general, if some recommendation from IEEE 754 (the floating-point standard) seems strange, its because someone like William Kahan thought about it in great detail and you'd be wise to follow it.

https://en.wikipedia.org/wiki/Rounding#Rounding_half_to_even