3 ms·
There are still (a few) computers in the world (Sperry Univac legacy support) using one's complement arithmetic, hence having a positive and negative zero in th
by sir_nop 6y ago
There are still (a few) computers in the world (Sperry Univac legacy support) using one's complement arithmetic, hence having a positive and negative zero in the architecture.
https://en.wikipedia.org/wiki/Ones%27_complement https://en.wikipedia.org/wiki/Ones%27_complement
- quelsolaar 6y agoWell all computers supporting IEEE 754 floating point numbers have a positive and a negative 0. Thats quite a few. I prefer to store all my most important data in the sign bit of floats set to zero.
- faeyanpiraat 6y agoWhy? Isn’t that what bool is for?
- cbsks 6y agoYou missed the invisible sarcasm tag
- faeyanpiraat 6y agoˢᵒʳʳʸ
- deleted 6y ago[deleted]
- quelsolaar 6y agoIts also the key to solving this: How is the result of: a = 0; different from: a = -0; :-)