Converting whole numbers to binary is a classic exercise, but exam questions and programming problems often include a decimal point – numbers such as 0.625, 10.75 or 0.1. If you are stuck on how to convert fractional decimal to binary, the trick is to treat the number in two parts: the whole part and the fractional part, each with its own simple method.
Step 1: Split the number
Take 10.625. Split it into:
- the whole part: 10
- the fractional part: 0.625
You will convert each part separately and join them with a binary point (the binary version of a decimal point).
Step 2: Convert the whole part (divide by 2)
Divide by 2 repeatedly and note the remainders:
10 ÷ 2 = 5 remainder 0 5 ÷ 2 = 2 remainder 1 2 ÷ 2 = 1 remainder 0 1 ÷ 2 = 0 remainder 1
Read the remainders from the bottom up: 1010. You can check whole numbers instantly with the Number Base Converter. For a refresher, see how to convert binary to decimal.
Step 3: Convert the fractional part (multiply by 2)
For the decimal fraction, do the opposite: multiply by 2 repeatedly. Each time, the whole-number digit of the result (0 or 1) becomes the next binary digit, and you carry on with what is left after the point.
0.625 × 2 = 1.25 → digit 1, carry 0.25 0.25 × 2 = 0.5 → digit 0, carry 0.5 0.5 × 2 = 1.0 → digit 1, carry 0 – stop
Read these digits from the top down: .101
Step 4: Join the parts
10.625 in binary = 1010.101
Check it: 1010 = 8 + 2 = 10, and .101 = ½ + ⅛ = 0.5 + 0.125 = 0.625. Correct.
Another example: 0.75
0.75 × 2 = 1.5 → 1, carry 0.5 0.5 × 2 = 1.0 → 1, stop
0.75 = 0.11 in binary (½ + ¼).
Why 0.1 never ends in binary
Try 0.1:
0.1 × 2 = 0.2 → 0 0.2 × 2 = 0.4 → 0 0.4 × 2 = 0.8 → 0 0.8 × 2 = 1.6 → 1 0.6 × 2 = 1.2 → 1 0.2 × 2 = 0.4 → 0 … and the pattern repeats
So 0.1 = 0.000110011001100… a repeating binary fraction that never terminates, just as ⅓ never ends in decimal (0.333…). In exams, stop after the number of places asked for – often 4, 6 or 8 – and round if instructed.
This is also why computers sometimes show 0.1 + 0.2 = 0.30000000000000004. They store a very close approximation of 0.1, not the exact value.
Which fractions convert exactly?
A decimal fraction ends in binary only if it can be written as a fraction whose bottom number is a power of two: ½, ¼, ⅛, 3/16 and so on. 0.5, 0.25, 0.375 and 0.625 are exact; 0.1, 0.2 and 0.3 repeat forever.
Binary fraction place values
Just as decimal places are tenths, hundredths and thousandths, binary places after the point are:
- 0.1₂ = ½ = 0.5
- 0.01₂ = ¼ = 0.25
- 0.001₂ = ⅛ = 0.125
- 0.0001₂ = 1/16 = 0.0625
To convert a binary fraction back to decimal, add the values wherever there is a 1.
Related conversions
Once you have the binary form, you can turn it into octal or hexadecimal by grouping digits – see how to convert binary to octal and how to convert decimal to hexadecimal. If the binary you are working with represents letters rather than numbers, the Binary Converter translates it to text.
Summary
Now you know how to convert fractional decimal to binary: split the number, divide the whole part by 2 and read the remainders upwards, multiply the fraction by 2 and read the digits downwards, then join them with a binary point. Some fractions repeat forever, so stop at the precision you need. Check the whole-number part with the free Number Base Converter.