Why is the number range 0-255 common in many computer files?

1.21K views

Why is the number range 0-255 common in many computer files?

In: Technology

6 Answers

Anonymous 0 Comments

Work on your google-fu.

256 is 2 to the power of 8 or 8 bits/1 byte, so counting from 0, 255 is the largest number that can be stored in a byte. 2 ^ 8 = 256, if you include 0 that’s 255. Meaning that you’re using the place for 256 for the 0, so you have one less to use. So that would be 8 bits that are available to you.

You are viewing 1 out of 6 answers, click here to view all answers.