Hacker News new | past | comments | ask | show | 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 | Lists | API | Security | Legal | Apply to YC | Contact

Search: