News for hackers. Stuff that matters.
Re:Is-postive – The most pointless NPM repository by cedric123 on Thursday June 18, 2015 @10:33AM (#9738714)
How Is 0 not positive?
Re:Is-postive – The most pointless NPM repository by alexrbarlow on Thursday June 18, 2015 @10:34AM (#9738719)
Re:Is-postive – The most pointless NPM repository by andystevens91 on Thursday June 18, 2015 @10:57AM (#9738907)
"0 is neither positive nor negative." https://en.wikipedia.org/wiki/0_%28number%29#Mathematics
Re:Is-postive – The most pointless NPM repository by spleeder on Thursday June 18, 2015 @12:12PM (#9739557)
Actually there is a positive 0 and a negative 0 in JavaScript. Try 1/+0 and 1/-0 in your browser console and notice how the result is different for each (+Infinity and -Infinity respectively).