HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by donall | Hacker News Reader
Full thread
donall
·
Why are the fruit counts represented as floats?
View on HN
matthiaskramm
·
You can get half a fruit if you and your opponent pick it up at the exact same time.
epaik
·
They didn't really have a choice in the matter! In JavaScript, all numbers are floats.
pyrotechnick
·
Incorrect:
http://www.khronos.org/registry/typedarray/specs/latest/
Besides, there's Number.prototype.toFixed().
Reply on news.ycombinator.com