weights
4096 2048 1024 512 256 128 64 32 16 8 4 2 1
0000 0010 1001 0110 (b) = 2 + 4 + 16 + 128 + 512
= 20 + 130 + 512
= 150 + 512
= 662 (d)
0000 1111 1111 1111 (b) = ?
note
0001 0000 0000 0000 (b) = 4096 (d)
therefore
0000 1111 1111 1111 (b) = 4095 (d)
Hit the "Back" button.