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

Why are the fruit counts represented as floats?



You can get half a fruit if you and your opponent pick it up at the exact same time.


They didn't really have a choice in the matter! In JavaScript, all numbers are floats.


Incorrect: http://www.khronos.org/registry/typedarray/specs/latest/

Besides, there's Number.prototype.toFixed().




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

Search: