Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
Is-postive – The most pointless NPM repository
(opens in new tab)
(github.com)
5 points
alexrbarlow
11y ago
4 comments
Save
Share
4 comments
4 comments · 1 top-level
top
newest
oldest
cedric123
11y ago
· 3 in thread
How Is 0 not positive?
alexrbarlow
OP
11y ago
Maybe it was!
https://github.com/kevva/is-positive/commit/3db0639fb52c463f...
andystevens91
11y ago
"0 is neither positive nor negative."
https://en.wikipedia.org/wiki/0_%28number%29#Mathematics
spleeder
11y ago
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).
j
/
k
navigate · click thread line to collapse