Hacker News new | past | comments | ask | show | jobs | submit login

> how do you use -0 in the add

In my mind the two zero values would represent a tiny epsilon around 0, let's say -0.01 and +0.01. Looking at them like this, it would mean

  +0 +0 -0 = +0
  +0 -0 -0 = -0
  +1 * +0 = +0
  -1 * +0 = -0
Performing addition with the same sign count in each group would be problematic. How to decide on the sign of +0-0 or +1-1, other than flipping a coin?



maybe they could be stored together in two words until they're operated on and lose their pairing?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: