fossilesqueM to Science MemesEnglish · 9 months ago10001external-linkmessage-square59linkfedilinkarrow-up1717arrow-down17
arrow-up1710arrow-down1external-link10001fossilesqueM to Science MemesEnglish · 9 months agomessage-square59linkfedilink
minus-squaremadjo@feddit.nllinkfedilinkEnglisharrow-up17·9 months ago-1 days? (or 17, without the overflow)
minus-squaretetris11@lemmy.mllinkfedilinkEnglisharrow-up13·edit-29 months 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!