News for hackers. Stuff that matters.
Re:Scribd says: Beat our programmers at a coding challenge by donall on Thursday May 24, 2012 @08:40PM (#4021330)
Why are the fruit counts represented as floats?
Re:Scribd says: Beat our programmers at a coding challenge by matthiaskramm on Thursday May 24, 2012 @08:43PM (#4021338)
You can get half a fruit if you and your opponent pick it up at the exact same time.
Re:Scribd says: Beat our programmers at a coding challenge by epaik on Thursday May 24, 2012 @08:46PM (#4021348)
They didn't really have a choice in the matter! In JavaScript, all numbers are floats.
Re:Scribd says: Beat our programmers at a coding challenge by pyrotechnick on Thursday May 24, 2012 @10:27PM (#4021595)
Incorrect: http://www.khronos.org/registry/typedarray/specs/latest/

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