# ⇩ DECIMAL TO BASE N CONVERTERS ⇩

#### DECIMAL TO BINARY CONVERTER (WITH STEPS)

Enter a number. RESULT

(85.375)10 = (1010101.011)2 DESCRIPTIONS

We convert the whole number and fractional parts separately and then combine the results.

WHOLE NUMBER PART

The whole number part of 85.375 is 85. Divide this number repeatedly by 2 until the quotient becomes 0.

• When 85 is divided by 2, the quotient is 42 and the remainder is 1.
• When 42 is divided by 2, the quotient is 21 and the remainder is 0.
• When 21 is divided by 2, the quotient is 10 and the remainder is 1.
• When 10 is divided by 2, the quotient is 5 and the remainder is 0.
• When 5 is divided by 2, the quotient is 2 and the remainder is 1.
• When 2 is divided by 2, the quotient is 1 and the remainder is 0.
• When 1 is divided by 2, the quotient is 0 and the remainder is 1.

Write the remainders from bottom to top.

(85)10 = (1010101)2

FRACTIONAL PART

The fractional part of 85.375 is 0.375. Multiply the fractional part repeatedly by 2 until it becomes 0.

• 0.375 × 2 = 0.750
• 0.750 × 2 = 1.500
• 0.500 × 2 = 1.000

From top to bottom, write the integer parts of the results to the fractional part of the number in base 2.

(0.375)10 = (0.011)2

OVERALL RESULT

Combine the whole number and fractional parts to obtain the overall result.

(85.375)10 = (1010101)2 + (0.011)2 = (1010101.011)2 OTHER INFORMATION

Copied to clipboard
Copy Text

# ⇩ DECIMAL TO BASE N CONVERTERS ⇩

## INFORMATION

### DECIMAL TO BINARY CONVERSION

#### WHOLE NUMBERS

We apply the following rules to convert a decimal number to binary.

• We divide the decimal number by 2 repeatedly until the quotient becomes 0.
• Starting at the least significant digit, we write the remainders in the same order of divisions. For example, to convert decimal 6 to binary, we divide 6 by 2 repeatedly until the quotient becomes 0.

When we divide 6 by 2, the quotient is 3 and the remainder is 0. Thus, 0 is the least significant bit of the binary equivalent. We continue the algorithm with 3. When we divide 3 by 2, both quotient and remainder are 1. Then 1 is the bit at the second LSB of the binary number. Finally, we divide 1 by 2. When we do this operation, the quotient is 0 and the remainder is 1. Because the quotient is 0, we stop the procedure. Then we write the last remainder to the most significant digit of the binary number. To sum up, the binary representation of 6 is 110.

(6)10 = (110)2

#### DECIMAL NUMBERS

In case, the decimal number is not an integer, we can convert the whole number and fractional parts separately and add the binary equivalents up.

To convert the fractional part of a decimal number, we apply the following rules.

• We multiply the fractional part by 2 repeatedly until the product becomes an integer or the number of significant digits is sufficient for our calculations.
• At each step, we write the integer part of the rightmost digit to the fractional part of the binary number. We continue with the fractional part of the product.

For example, to convert 6.375 to binary, we multiply the fractional part by 2 repeatedly until we find an integer.

• 0.375 × 2 = 0.75
• 0.75 × 2 = 1.5
• 0.5 × 2 = 1 The fractional part of 6.375 is 0.375. When we multiply 0.375 by 2, the result is 0.75. The integer part of 0.75 is 0. Thus we write 0 to the first digit on the RHS of the radix point.

0.0

We continue with the fractional part of 0.75. When we multiply 0.75 by 2, the result is 1.5. We write the integer part of 1.5 to the next digit of the binary.

0.01

The fractional part of 1.5 is 0.5. Therefore, we continue with this number. The product of 0.5 and 2 is equal to 1. Because 1 is an integer we write it to the next digit of the binary and stop multiplying numbers.

(0.375)10 = (0.011)2

Binary representation of 6.375 is equal to the sum of binary representations of 6 and 0.375. Thus, decimal 6.375 is equal to binary 110.011.

(6.375)10 = (6)10 + (0.375)10

= (110)2 + (0.011)2

= (110.011)2

### WHAT IS DECIMAL TO BINARY CONVERTER?

Decimal to binary converter,

• Computes the binary equivalent of the entered decimal number and
• Describes each step of the conversion for both whole number and fractional parts,

### HOW TO USE DECIMAL TO BINARY CONVERTER?

You can use decimal to binary converter in two ways.

• #### USER INPUTS You can enter a decimal number to the input box and click on the "CONVERT" button. The result and explanations appaer below the calculator

• #### RANDOM INPUTS You can click on the DIE ICON next to the input box. If you use this property, a random decimal number is generated and entered to the calculator, automatically. You can see the result and explanations below the calculator. You can create your own examples and practice using this property.

• #### CLEARING THE INPUT BOX To check the binary equivalent of other decimals you can clear the input box by clicking on the CLEAR button under the input box.

• You can copy the generated solution by clicking on the "Copy Text" link, appaers under the solution panel.

•  