;
Bit Values
Value 128 64 32 16 8 4 2 1 255
Bit 1 1 1 1 1 1 1 1 11111111

 

If the bit is on then from left to right add the decimal value


 

Bits On and Off to Decimal Chart
Bits On Decimal Value
10000000 128
11000000 192
11100000 224
11110000 240
11111000 248
11111100 252
11111110 254
11111111 255