English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2007-02-25 10:36:43 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

1 answers

The question is somewhat vague...

Binary representation is made up of zeros and ones. A byte is eight bits. So think of a binary representation of a byt using the following format:

00 000 000

That's also the representation for the number zero. Each of those positions represent a value in base 2 (binary) from right to left, they are

1, 2, 4, 8, 16, 32, 64, 128

So, to get the number 10 for example, you would turn "on" bits for 8 and 2 giving:

00 001 010

The sequence is as follows:

00 000 001 = 1
00 000 010 = 2
00 000 011 = 3
00 000 100 = 4
00 000 101 = 5

and so on...

2007-02-25 10:41:20 · answer #1 · answered by BigRez 6 · 0 0

fedest.com, questions and answers