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().

Applications are open for YC Summer 2018

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