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
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.
yetAnotherUser@feddit.de 5 months ago
IEEE 754 floating point numbers have a signed bit at the front, causing +0 and -0 to exist.