Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Banker's rounding is "round to even", because it limits the amount of bias introduced by the rounding.

> But I know the regulator will expect round(0.5) = 1, not 0.

That's not necessarily the most helpful, as there's at least two tie-breakings which provide that, but differ in their treatment of negative numbers (round up or round to +∞, and round away from zero or round to ∞).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: