fossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 15 days ago10001mander.xyzimagemessage-square58fedilinkarrow-up1570arrow-down16
arrow-up1564arrow-down1image10001mander.xyzfossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 15 days agomessage-square58fedilink
minus-squaremadjo@feddit.nllinkfedilinkEnglisharrow-up16·13 days ago-1 days? (or 17, without the overflow)
minus-squaretetris11@lemmy.mllinkfedilinkEnglisharrow-up12·edit-213 days agoTwos complement (invert the bits then add one), so its -15 days. Otherwise 00000 and 10000 would paradoxically both equal 0 and make bitwise equality checks very difficult.
-1 days? (or 17, without the overflow)
Twos complement (invert the bits then add one), so its -15 days.
Otherwise 00000 and 10000 would paradoxically both equal 0 and make bitwise equality checks very difficult.
Good point!