Only if you’re using a sign bit rather than two’s compliment (a sign bit allows for two representations of 0)
Comment on 10001
phoenixz@lemmy.ca 4 days agoUnless it’s a signed integer, then it’s -1 and they’re expecting something…
computergeek125@lemmy.world 3 days ago
DacoTaco@lemmy.world 3 days ago
A 5 bit long signed integer? What kind of weird system you using ? :p
gens@programming.dev 3 days ago
Two’s complement