Convert Binary and Decimal Number
May 29, 2009In computer language there are four base numbers. The four bases that number is binary (base 2), octal (basis8), decimal (base 10) and hexadesimal (base 16).Fourth number-based 2, 8, 10 and 16 are related to one another. So now we need to know how so that we can convert from one number to the base before other base. In this article we only describe the number of converts Decimal (base 10) number to binary (base 2) and vice versa from binary to decimal.
Before convert Decimal to binary number that we have to know first four numbers are based, namely:
Binary numbers: 1 and 0
Octal numbers: 0, 1, 2, 3, 4, 5, 6 and 7
Decimal number: 0, 1, 2, 3, 4, 5, 6.7, 8 and 9
Numbers Hexadecimal: 0, 1, 2, 3, 4, 5, 6.7, 8, 9, A, B, C, D, E and F
Conversion from decimal to binary numbers, with the division of decimal numbers with a base number of binary (2), and the results from the division that the value of the biner.
Example: 10 (10) = …… (2)
From the above example in the know the decimal value is 10, in the question how the value biner?
To get the binary value calculation is performed with the division of the binary number that is the basis of 2.
Because we find the binary (1 and 0) then the results we also need to reach number 1 and 0.
first division: 10 divided by 2 = 5, remainder = 0.
second division: 5 divided by 2 = 2, remainder = 1.
third division: 2 divided by 2 = 1, remainder = 0.
How to read the results of the above numbers into binary (base 2) is as follows:
As with each of the calculator is the starting number of digits up to the smallest or the largest digit in other words from the digit to a digit of tens, hundreds, and so on (from right to left)
Similarly to the results of the calculation of the above, the rest of the division is 0, write the number 0 is the most right. Then the results from the second division and the remainder is 1, write the number 1 on the left is a number from 0 we write the first line.
The third division of the 1 and the remaining 0, the remaining number must be in writing before the results of the division is. So write a number from 0 remaining in the third division of the number 1 (the rest of the second division) and continued with the writing of the last digit is 1, that the results so that a third division in 1010.
And now we have to restore the binary number 1010 to decimal, How do?
To change or convert the binary number to decimal number we need to decompose into the binary-based have an important position 2.
Binary number 1010(2) = ……(10)
described as:
so for the 1010 binary = 10 decimal
So the end result to be 1010 (binary)