(unsigned) weights
4096 2048 1024 512 256 128 64 32 16 8 4 2 1
365(d) = 256 + 109
= 256 + 64 + 45
= 256 + 64 + 32 + 13
= 256 + 64 + 32 + 8 + 5
= 256 + 64 + 32 + 8 + 4 + 1
= 0000 0001 0110 1101 (b)
-52(d) = ?
step 1:
+52(d) = 32 + 20
= 32 + 16 + 4
= 0000 0000 0011 0100(b)
step 2:
-52d(d) = 0000 0000 0000 0000 (b)
- 0000 0000 0011 0100 (b)
________________________
= 1111 1111 1100 1100 (b)
(or use alternate method of reversing bits and adding 1)
Hit the "Back" button.