0% found this document useful (0 votes)
20 views

Reading Binary Numbers - 001

Digital data can be represented using binary numbers, which use only two digits: 0 and 1. Binary numbers have a base of 2, while decimal numbers have a base of 10. To convert a binary number to decimal, we write it in a table with place values that are powers of 2, multiply each digit by its place value, and sum the results. To convert decimal to binary, we repeatedly divide the decimal number by 2 and write the remainders from bottom to top to get the binary representation. Converting between binary and decimal allows us to work with digital data using either number system.

Uploaded by

hussain korir
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Reading Binary Numbers - 001

Digital data can be represented using binary numbers, which use only two digits: 0 and 1. Binary numbers have a base of 2, while decimal numbers have a base of 10. To convert a binary number to decimal, we write it in a table with place values that are powers of 2, multiply each digit by its place value, and sum the results. To convert decimal to binary, we repeatedly divide the decimal number by 2 and write the remainders from bottom to top to get the binary representation. Converting between binary and decimal allows us to work with digital data using either number system.

Uploaded by

hussain korir
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Digital Data

Reading Binary numbers


Reading Binary Numbers
• In the previous lessons we learnt that binary numbers uses two digits
0’s and 1’s
• Binary numbers are also called base 2
• Decimal number uses ten digits ranging from Zero to Nine(0-9).
• Decimal numbers are also called denary or base 10
• The value of each column in a decimal number is 10 times greater
than the previous column.
• The values of each column in binary number is 2 times greater than
the previous column.

Base 10 Base 2
How to read binary numbers
• The easiest way to read binary numbers is to convert in to 32 16 8 4 2 (1)
decimal numbers , because we use decimal numbers every day
and it is much easier to understand. 1 1 0 1 1
Example
>> The binary number shown here 1101, and here is the easiest 1×0=0
way to convert in to decimal number. 0×2=0
I. Draw the table like the one in an example , it must have 1×4=4
enough column to hold the binary number to be converted . 1×8=8
Total=13=1101
II. In the first raw ,write the value of each column ,start with Example 2
units (1) in the right hand column then multiply by two Convert 11110 in to decimal
each time you move from right to left. 0×0=0
1×2=2
III. Write the number you want to convert in the second raw of 1×4=4
your table. 1×8=8
1×16=16
IV. Multiply each digit in the number you want to convert by
Total=30=11110
the column value.
Example 3
V. Add the result together .The total is the value of the binary Convert 11111 into decimal
number as a decimal. Total=31=11111
Convert the following binary to denary using the positional formulae
a. 1110= (1x23=8 ) (1x22=4 )(1x21=2 ) (ox20=0)(answer is 14)

b. 00101= (1x22=4)(0x21=0)(1x20=1)=answer is 5
c. 00110=()()(1x22=4)(1x21=2(0x20=0) answer is 6
d. 11111=(1x24=16)(1x23=8)(1x22=4)(1x21=2)(1x20=1)= answer 31

32 16 8 4 2 1

1 1 1 0

0 0 1 0 1

0 0 1 1 0

1 1 1 1 1
Bit and Bites
 The word bit is short for binary digit. Each digit in binary number is called a bit
(1111),
 A bit is not very useful on its own, it can only store one of two values 0(off ) or 1(on)
 A byte is a group of bits (eight bits grouped together).=(00000000)
 There are eight bits in a bytes .
>>>>>1 byte is Equal 8 bits
>> 1101 this is a four bit number.
>>11111111, this is a eight bit number or a byte.
 8bits=1byte
 Ten and eleven are example of names of numbers in decimal system . Every number in
decimal system have its name
 Numbers are not given names in binary.
 The binary number 11 , this is called ‘one-one’ what can we call This”10”
 Decimal number eleven and binary number 11 are different.

8 4 2 1
1 0 1 1

Eleven=1011
Converting Decimal to Binary
Method 1
• To convert a decimal integer to a binary number, use the same method as above, but
working the other way. For example, to convert the number 98:Write down the power of 2
sequence. (Eight bits are used here but you will notice that you only need seven for this
example.)
128 64 32 16 8 4 2 1

0 1 1 0 0 0 1 0
● Starting from the MSB put a 1 or 0 in each column as necessary to
ensure that it adds up to 98 as follows:
● 0 under 128
● 1 under 64
● 1 under 32
● 0 under 16
● 0 under 8
● 0 under 4
● 1 under 2
● 0 under 1
Therefore 01100010 = 98.
1024 512 256 128 64 32 16 8 4 2 1

1 1 1 1 0 0

Example Example 3
Convert 85 into binary Convert 40 to binary number
85-64= 21 40-32=8
21-16=5 40 is=101000
5-4=1
Convert 150 to binary
Therefore 85 is= 1010101 150=10010110
Example 4
Example 2 Convert 600 to binary
Convert 130 in to binary number 600-512=88
130>128 88-64=24
130-128=2 24-16=8
600 is= 1001011000
130 is =10000010
Method 2
• This method involves successive division by 2.
• The remainders are then read from BOTTOM to TOP to give the binary
value. Again using 107, we get:
87 rem

You might also like