• swag_money@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    what’s the general rule for translating negatives from binary? did you just do like 17 - 2 • (-1) or something?

    • Yardy Sardley@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 month ago

      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.