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