(unsigned) weights
4096 2048 1024 512 256 128 64 32 16 8 4 2 1
1111 1101 0111 0110(b) = ?
note: left-most bit is "on", so this is a negative value.
to convert back to the absolute value, we can subtract from 0
or reverse the bits and add 1
in either case, we get an absolute value of
10 1000 1010(b) = 512 + 128 + 8 + 2
= 640 + 10
= 650(d)
therefore,
1111 1101 0111 0110(b) = -650(d)
0000 0001 0110 0000(b) = ?
Note: left-most bit is "off", so this is a positive value.
we only need to convert as for unsigned binary
0000 0001 0110 0000(b) = 256 + 64 + 32
= 320 + 32
= +352(d)
Hit the "Back" button.