HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by jamesrom | Hacker News Reader
Full thread
jamesrom
·
A use-case for -0.
https://en.wikipedia.org/wiki/Negative_zero
View on HN
ajnin
·
That would pose issues when iterating over a range that crosses the X/Y axis, you'd need special case for this. Or you might say that -0 +1 = 0 but I think that would probably break some fundamental properties of the ring of integers.
Reply on news.ycombinator.com