Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by yarg

2 years ago

It's neutral (-1 * 0 ≡ +1 * 0); don't confuse it for an infinitesimal (which can be positive or negative).

2 comments

yarg

Reply

zeven7  2 years ago

I think they were referring to -0 in floating point, which does exist as a separate value from +0 https://en.m.wikipedia.org/wiki/Signed_zero

lll-o-lll  2 years ago

Nah, zero definitely feels a bit more positive to me.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities