fossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 1 month ago10001mander.xyzimagemessage-square11fedilinkarrow-up12arrow-down10
arrow-up12arrow-down1image10001mander.xyzfossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 1 month agomessage-square11fedilink
minus-squarecobysev@lemmy.worldlinkfedilinkEnglisharrow-up1·1 month agoFor anyone who doesn’t want to do the conversion, that’s 17 days.
minus-squarePhoenixz@lemmy.calinkfedilinkEnglisharrow-up0·1 month agoUnless it’s a signed integer, then it’s -1 and they’re expecting something…
minus-squareDacoTaco@lemmy.worldlinkfedilinkEnglisharrow-up0·1 month agoA 5 bit long signed integer? What kind of weird system you using ? :p
minus-squarePhoenixz@lemmy.calinkfedilinkEnglisharrow-up1·18 days agoBecause a 5 bit unsigned integer is so much better? :p
minus-squareswag_money@lemmy.worldlinkfedilinkEnglisharrow-up0·1 month 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-up1·1 month 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.
For anyone who doesn’t want to do the conversion, that’s 17 days.
Unless it’s a signed integer, then it’s -1 and they’re expecting something…
A 5 bit long signed integer? What kind of weird system you using ? :p
Because a 5 bit unsigned integer is so much better? :p
Or -15 days
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.