Specifically I was referring to standard float representation which permits signed zeros. However, other comments provide some interesting examples also.
Comment on near zero
PlexSheep@infosec.pub 5 months agoWhat do you mean? In two’s complement, there is only one zero.
henfredemars@infosec.pub 5 months ago
hungrybread@hexbear.net 5 months ago
mexicancartel@lemmy.dbzer0.com 5 months ago
Who use ones complement?
hungrybread@hexbear.net 5 months ago
I assume no one at this point
mexicancartel@lemmy.dbzer0.com 5 months ago
I think 1’s complement only existed to facilitate 2’s complement. Otherwise its stupid
sus@programming.dev 5 months ago
floats
Zerush@lemmy.ml 5 months ago
1- 0,99999…
PlexSheep@infosec.pub 5 months ago
Floating point numbers are not possible in two’s complement, besides that, what is your point? 0,99999999… is probably the same as 1.
Zerush@lemmy.ml 5 months ago
Yes, mathematically it’s the same, but in physics there’s a guy named Heisenberg who denies that 0.99999… really gets to 1. There is always this difference, for a mathematician infinite is not a problem, but for a physicist it is, plus a very big one.
PlexSheep@infosec.pub 5 months ago
True, it sounds like that might be a problem if we consider that physics has to be between math and computer science.
(Have a nice day)
yetAnotherUser@feddit.de 5 months ago
IEEE 754 floating point numbers have a signed bit at the front, causing +0 and -0 to exist.