Hacker News new | past | comments | ask | show | jobs | submit login

Indexing with floats means you need to do rounding. May I suggest a modified version of Banker's Rounding?

http://en.wikipedia.org/wiki/Rounding#Round_half_to_even




Registration is open for Startup School 2019. Classes start July 22nd.

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

Search: