How to convert Decimal to BinaryThe decimal numeral system is the standard system for denoting integer and non-integer numbers. It is the extension to non-integer numbers of the Hindu-Arabic numeral system. For writing numbers, the decimal system uses ten decimal digits, a decimal mark, and, for negative numbers, a minus sign "-". The decimal digits are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9; the decimal separator is the dot "." in many countries.
A binary number is a number expressed in the base-2 numeral system or binary numeral system, which uses only two symbols: typically "0" and "1". The base-2 numeral system is a positional notation with a radix of 2. Each digit is referred to as a bit. Because of its straightforward implementation in digital electronic circuitry using logic gates, the binary system is used by almost all modern computers and computer-based devices.
Follow these steps to convert a decimal number into binary form:
- Divide the decimal number by 2.
- Get the integer quotient for the next iteration (if the number will not divide equally by 2, then round down the result to the nearest whole number).
- Keep a note of the remainder, it should be between 0 and 1.
- Repeat the steps until the quotient is equal to 0.
- Write out all the remainders, from bottom to top. This is the solution.
|139 / 2||69||1|
|69 / 2||34||1|
|34 / 2||17||0|
|17 / 2||8||1|
|8 / 2||4||0|
|4 / 2||2||0|
|2 / 2||1||0|
|1 / 2||0||1|