fossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 2 days ago10001mander.xyzimagemessage-square55fedilinkarrow-up1671arrow-down16
arrow-up1665arrow-down1image10001mander.xyzfossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 2 days agomessage-square55fedilink
minus-squareswag_money@lemmy.worldlinkfedilinkEnglisharrow-up2·13 hours agowhat’s the general rule for translating negatives from binary? did you just do like 17 - 2 • (-1) or something?
minus-squareYardy Sardley@lemmy.calinkfedilinkEnglisharrow-up3·11 hours agoI used what known as 2’s compliment. Take the complement (flip all the bits - here that would give you 01110 which is 14) then add 1.
minus-squareswag_money@lemmy.worldlinkfedilinkEnglisharrow-up1·10 hours agothanks for the explanation! could you express it as a NOT operation plus one? like is that how it would be processed at a low level?
what’s the general rule for translating negatives from binary? did you just do like 17 - 2 • (-1) or something?
I used what known as 2’s compliment. Take the complement (flip all the bits - here that would give you
01110
which is 14) then add 1.thanks for the explanation! could you express it as a NOT operation plus one? like is that how it would be processed at a low level?