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

His code snippet had rounding errors on the boundaries towards the next unit.

However he notes:

> FWIW, all 22 answers posted, including the ones using Apache Commons and Android libraries, had this bug (or a variation of it) at the time of writing this article.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: