Change Of Binary Number To Decimal Number And Decimal Number To Binary Number

<<2/”>a >body>



Change of binary number to decimal number and decimal number to binary number

Binary Number System

Digital computer represents all kinds of data and information in the binary system. Binary Number System consists of two digits 0 and 1. Its base is 2. Each digit or bit in binary number system can be 0 or 1. A combination of binary numbers may be used to represent different quantities like 1001. The positional value of each digit in binary number is twice the place value or face value of the digit of its right side. The weight of each position is a power of 2.

The place value of the digits according to position and weight is as follows:

Position

3

2

1

0

Weights

23

22

21

20

 

Example: Convert 101112 decimal number

Position

2

1

0

-1

-2

Weights

102

101

100

10-1

10-2

Face Value

1

3

9

7

8

 

101112             =          1 x 24 + 0 x 23 + 1 x 22 + 1 x 21 + 1 x 20

                        =          1 x 16 + 0 + 1 x 4 + 1 x 2 + 1 x 1

                        =          16 + 0 + 4 2 + 1

                        =          2310

Decimal number system

The Decimal Number System consists of ten digits from 0 to 9. These digits can be used to represent any numeric value. The base of decimal number system is 10. It is the most widely used number system. The value represented by individual digit depends on weight and position of the digit.

Each number in this system consists of digits which are located at different positions. The position of first digit towards left side of the decimal point is 0. The position of second digit towards left side of the decimal point is 1. Similarly, the position of first digit towards right side of decimal point is -1. The position of second digit towards right side of decimal point is -2 and so on.

The value of the number is determined by multiplying the digits with the weight of their position and adding the results. This method is known as expansion method. The rightmost digit of number has the lowest weight. This digit is called Least Significant Digit (LSD). The leftmost digit of a number has the highest weight. This digit is called Most Significant Digit (MSD). The digit 7 in the number 724 is most significant digit and 4 is the least significant digit.


Decimal to binary conversion examples

(51)10 = (110011)2

(217)10 = (11011001)2

(8023)10 = (1111101010111)2

 

 

 

 

 

 


,

The binary number system is a numeral system that represents numbers using two symbols: 0 and 1. It is the base-2 numeral system, and the number 2 is called the base. The binary numeral system is used in digital electronics, computer science, and many other fields.

The decimal number system is the most common numeral system in use today. It is a base-10 numeral system, and the number 10 is called the base. The decimal numeral system is used in everyday life for counting, measuring, and calculating.

To convert a binary number to a decimal number, you can use the following steps:

  1. Write down the binary number.
  2. Starting from the right, multiply each digit in the binary number by 2 raised to the power of its position.
  3. Add the products together.

For example, to convert the binary number 1011 to decimal, you would do the following:

  1. Write down the binary number: 1011
  2. Starting from the right, multiply each digit in the binary number by 2 raised to the power of its position:

  3. 1 x 2^3 = 8

  4. 0 x 2^2 = 0
  5. 1 x 2^1 = 2
  6. 1 x 2^0 = 1

  7. Add the products together: 8 + 0 + 2 + 1 = 11

Therefore, the decimal equivalent of the binary number 1011 is 11.

To convert a decimal number to a binary number, you can use the following steps:

  1. Divide the decimal number by 2.
  2. Write down the remainder.
  3. If the quotient is not 0, go back to step 1.

For example, to convert the decimal number 11 to binary, you would do the following:

  1. Divide 11 by 2: 11 / 2 = 5, remainder 1
  2. Write down the remainder: 1
  3. The quotient is 5, which is not 0, so go back to step 1.
  4. Divide 5 by 2: 5 / 2 = 2, remainder 1
  5. Write down the remainder: 1
  6. The quotient is 2, which is not 0, so go back to step 1.
  7. Divide 2 by 2: 2 / 2 = 1, remainder 0
  8. The quotient is 1, which is 0, so stop.

The remainders you have written down are 1, 1, and 0. This is the binary representation of the decimal number 11.

Binary addition is the process of adding two binary numbers together. To add two binary numbers, you can use the following steps:

  1. Line up the binary numbers so that the corresponding digits are in the same column.
  2. Starting from the right, add the digits in each column.
  3. If the sum of the digits in a column is greater than 1, carry the 1 over to the next column.
  4. Continue adding the digits in each column, carrying over as necessary.
  5. The sum of the two binary numbers is the number you have written down.

For example, to add the binary numbers 1011 and 1101, you would do the following:

  1. Line up the binary numbers so that the corresponding digits are in the same column:

  2. 1011

    • 1101
  3. Starting from the right, add the digits in each column:

  4. 1 + 1 = 10

  5. 0 + 1 + 1 = 10
  6. 1 + 0 + 0 = 1
  7. 1 + 1 + 1 = 11

  8. Since the sum of the digits in the third column is greater than 1, carry the 1 over to the next column:

  9. 10

    • 11
  10. 1

  11. Continue adding the digits in each column, carrying over as necessary:

  12. 10

    • 11
  13. 1
    • 1
  14. 1010

  15. The sum of the two binary numbers is 1010.

Binary subtraction is the process of subtracting two binary numbers. To subtract two binary numbers, you can use the following steps:

  1. Line up the binary numbers so that the corresponding digits are in the same column.
  2. Starting from the right, subtract the digits

What is a binary number?

A binary number is a number that is represented using only two digits: 0 and 1. It is a base-2 number system, which means that each digit position has a value that is a power of 2. The rightmost digit position has a value of 2^0, the next digit position has a value of 2^1, and so on.

How do you convert a binary number to a decimal number?

To convert a binary number to a decimal number, you can use the following formula:

Decimal = (2^n * b_n) + (2^(n-1) * b_{n-1}) + … + (2^0 * b_0)

where:

  • n is the number of digits in the binary number
  • b_n is the value of the nth digit in the binary number (starting from the right)

For example, to convert the binary number 1011 to a decimal number, you would use the following formula:

Decimal = (2^3 * 1) + (2^2 * 0) + (2^1 * 1) + (2^0 * 1) = 11

How do you convert a decimal number to a binary number?

To convert a decimal number to a binary number, you can use the following algorithm:

  1. Divide the decimal number by 2.
  2. Write down the remainder.
  3. If the quotient is not 0, go back to step 1.
  4. Starting from the bottom, write down the remainders in reverse order.

For example, to convert the decimal number 11 to a binary number, you would use the following algorithm:

  1. 11 / 2 = 5, remainder 1
  2. 5 / 2 = 2, remainder 1
  3. 2 / 2 = 1, remainder 0
  4. 1 / 2 = 0, remainder 1

The remainders in reverse order are 1, 1, 0, so the binary number is 110.

What is a hexadecimal number?

A hexadecimal number is a number that is represented using 16 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F. It is a base-16 number system, which means that each digit position has a value that is a power of 16. The rightmost digit position has a value of 16^0, the next digit position has a value of 16^1, and so on.

How do you convert a hexadecimal number to a decimal number?

To convert a hexadecimal number to a decimal number, you can use the following formula:

Decimal = (16^n * h_n) + (16^(n-1) * h_{n-1}) + … + (16^0 * h_0)

where:

  • n is the number of digits in the hexadecimal number
  • h_n is the value of the nth digit in the hexadecimal number (starting from the right)

For example, to convert the hexadecimal number 1011 to a decimal number, you would use the following formula:

Decimal = (16^3 * 1) + (16^2 * 0) + (16^1 * 1) + (16^0 * 1) = 85

How do you convert a decimal number to a hexadecimal number?

To convert a decimal number to a hexadecimal number, you can use the following algorithm:

  1. Divide the decimal number by 16.
  2. Write down the remainder.
  3. If the quotient is not 0, go back to step 1.
  4. Starting from the bottom, write down the remainders in reverse order.

For example, to convert the decimal number 11 to a hexadecimal number, you would use the following algorithm:

  1. 11 / 16 = 0, remainder 11
  2. 16 / 16 = 1, remainder 0

The remainder is 11, which is equivalent to the hexadecimal digit B. So the hexadecimal number is B.

  1. What is the binary equivalent of the decimal number 10?
    (A) 1010
    (B) 1011
    (C) 1100
    (D) 1101

  2. What is the decimal equivalent of the binary number 1010?
    (A) 8
    (B) 10
    (C) 12
    (D) 16

  3. What is the binary equivalent of the decimal number 16?
    (A) 10000
    (B) 10001
    (C) 10010
    (D) 10011

  4. What is the decimal equivalent of the binary number 10000?
    (A) 16
    (B) 32
    (C) 64
    (D) 128

  5. What is the binary equivalent of the decimal number 32?
    (A) 100000
    (B) 100001
    (C) 100010
    (D) 100011

  6. What is the decimal equivalent of the binary number 100000?
    (A) 32
    (B) 64
    (C) 128
    (D) 256

  7. What is the binary equivalent of the decimal number 64?
    (A) 1000000
    (B) 1000001
    (C) 1000010
    (D) 1000011

  8. What is the decimal equivalent of the binary number 1000000?
    (A) 64
    (B) 128
    (C) 256
    (D) 512

  9. What is the binary equivalent of the decimal number 128?
    (A) 10000000
    (B) 10000001
    (C) 10000010
    (D) 10000011

  10. What is the decimal equivalent of the binary number 10000000?
    (A) 128
    (B) 256
    (C) 512
    (D) 1024

  11. What is the binary equivalent of the decimal number 256?
    (A) 100000000
    (B) 100000001
    (C) 100000010
    (D) 100000011

  12. What is the decimal equivalent of the binary number 100000000?
    (A) 256
    (B) 512
    (C) 1024
    (D) 2048

  13. What is the binary equivalent of the decimal number 512?
    (A) 1000000000
    (B) 1000000001
    (C) 1000000010
    (D) 1000000011

  14. What is the decimal equivalent of the binary number 1000000000?
    (A) 512
    (B) 1024
    (C) 2048
    (D) 4096

  15. What is the binary equivalent of the decimal number 1024?
    (A) 10000000000
    (B) 10000000001
    (C) 10000000010
    (D) 10000000011

  16. What is the decimal equivalent of the binary number 10000000000?
    (A) 1024
    (B) 2048
    (C) 4096
    (D) 8192

  17. What is the binary equivalent of the decimal number 2048?
    (A) 100000000000
    (B)