What is a Byte?

VietMX Staff asked 3 years ago

byte is made up of 8 bits and the highest value of a byte is 255, which would mean every bit is set. We will look at why a byte’s maximum value is 255 in just a second.

So if all bits are set and the value = 255 my byte would look like this:

1 Byte ( 8 bits )
Place Value 128 64 32 16 8 4 2 1
1
1
1
1
1
1
1
1
=
255

Lets take it right to left and add up all those values together 1 + 2 + 4 + 8 + 16 + 32 + 64 + 128 = 255