uni

Thing1's amazing uni repo
Log | Files | Refs | Submodules

10.02.26.md (264B)


      1 # 10/02/26
      2 
      3 ## two's compliment
      4 
      5 - An altenative method to convert is to take the abs(number), flip all the bits and add 1, assuming it was negative
      6 - Use the table
      7 ```
      8 | -8 | 4 | 2 | 1 |
      9 |----|---|---|---|
     10 |  1 | 0 | 0 | 1 | = -8 + 1 = -7
     11 |----|---|---|---|
     12 ```
     13