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

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 Spring batch! Applications are open till Feb 11.

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

Search: