BINARY CONVERSIONS
The Binary number system is also known as Base 2. It consists of the digits 0 and 1.
The Decimal number system is also known as Base 10. It consists of the digits 0 to 9.
CONVERTING DECIMAL TO BINARY
To convert a decimal number to binary, we need to divide the decimal number repeatedly by 2 and read the remainders downwards up.
Eg. Convert 23 to binary
Ans.
Therefore, 2310 = 101112
CONVERTING BINARY TO DECIMAL
- To do this, first we need to count the number of bits in the binary number, then construct a table with 2 rows and n columns, where n represents the number of bits.
- Next, we place a 1 in the top right hand corner of the table, and multiply by 2 to get the other values in the first row.
- Then, fill in the binary number in the 2nd row, multiply top by bottom and add the values.
Eg. Convert 10111 to decimal
Ans. The above binary number has 5 bits, therefore we need to construct a table with 5 columns and 2 rows.
Comments (0)
You don't have permission to comment on this page.