News for hackers. Stuff that matters.
Re:The Curious Case of JavaScript’s `sort` by hajile on Wednesday April 13, 2016 @11:24AM (#11488951)
All numbers in JS are floats. Overflow and underflow are represented as positive and negative infinity while the check itself looks for 0, greater than zero, less than zero. Both infinities qualify as greater or less than zero (respectively), so I don't believe this problem exists.

There are no comments on this comment yet.