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 5 weeks agoUnless it’s a signed integer, then it’s -1 and they’re expecting something…
computergeek125@lemmy.world 5 weeks ago
DacoTaco@lemmy.world 5 weeks ago
A 5 bit long signed integer? What kind of weird system you using ? :p
gens@programming.dev 5 weeks ago
Two’s complement
phoenixz@lemmy.ca 2 weeks ago
Because a 5 bit unsigned integer is so much better? :p