evanw / float-toy

Use this to build intuition for the IEEE floating-point format
155 stars 38 forks source link

Add negative zero #5

Closed jholman closed 4 years ago

jholman commented 4 years ago

https://en.wikipedia.org/wiki/Signed_zero

When the sign-bit is true, and all other bits are false, the result should be negative zero.