Binary Fraction Converter (2024)

Converting integers to binary is easy; what about converting the decimal part? Learn how to do it with our binary fraction converter.

Get a better understanding of your computer with us. Here, we will teach you:

  • What a binary fraction is.
  • Where we use binary fractions.
  • The limitations of a computer and the effect on rounding.
  • How to convert from decimal fraction to binary fraction and vice-versa.
  • How to use our binary fraction converter β€” it's simple, trust us!

Binary representation

Computers think in terms of ones and zeros β€” that's binary code, and it is everywhere. Peek behind this converter, and you'll see a lot of those numbers!

Converting integers numbers from base 10 (decimal) to base 2 (binary) is easy and doesn't introduce errors. The same holds when you consider a number written in positional notation (when you specify the position of a digit in a number). We can't say the same of decimal numbers as you would write them on a sheet of paper, like 0.420.420.42 and 0.33333333...0.33333333...0.33333333....

πŸ’‘ If you want to learn how to convert integers from base 101010 to base 222, go to our decimal to binary calculator! Are you asking for other bases? We got you: try the binary to hexadecimal converter or the binary to octal converter. Omni is omni!

What is a binary fraction?

Take the decimal part of a non-integer number. That is a proper fraction β€” its value is smaller than one. When the denominator is a power of ten (101010, 100100100, 100010001000,...), we talk of decimal fractions.


Representing such values in base 2 brings us the binary fractions!

How to convert fractions to binary

Converting a decimal fraction to binary is not that hard. Take any decimal fraction: we chose 0.29120.29120.2912. Make sure that the integer part is 000.

Now, multiply it by two, and see what happens.

0.2912Γ—2=0.58240.2912\times 2 = 0.58240.2912Γ—2=0.5824

The integer part remained 000: this is the first element of the binary fraction, 0.0...0.0...0.0.... Repeat the step; we will see something different this time.

0.5824Γ—2=1.16480.5824\times 2 =1.16480.5824Γ—2=1.1648

The integer part is now 111: the second element of our binary fraction will be 111: 0.01...0.01...0.01....

Remove the integer part (subtract 111), and repeat the steps again and again; your binary fraction will grow!

0.1684Γ—2=0.3368β†’0.0100.3368Γ—2=0.6736β†’0.01000.6736Γ—2=1.3472β†’0.01001βˆ’10.3472Γ—2=0.6944β†’0.0100100.6944Γ—2=1.3888β†’0.0100101\footnotesize 0.1684\times 2=0.3368 \rightarrow \textcolor{red}{0.010}\\\footnotesize 0.3368\times 2=0.6736 \rightarrow \textcolor{red}{0.0100}\\\footnotesize 0.6736\times 2=1.3472 \rightarrow \textcolor{red}{0.01001} \\\textcolor{blue}{-1}\\\footnotesize 0.3472\times 2 = 0.6944 \rightarrow \textcolor{red}{0.010010} \\\footnotesize 0.6944\times 2 = 1.3888 \rightarrow \textcolor{red}{0.0100101} \\0.1684Γ—2=0.3368β†’0.0100.3368Γ—2=0.6736β†’0.01000.6736Γ—2=1.3472β†’0.01001βˆ’10.3472Γ—2=0.6944β†’0.0100100.6944Γ—2=1.3888β†’0.0100101


0.3888Γ—2=0.7776β†’0.010010100.7776Γ—2=1.5552β†’0.010010101βˆ’10.5552Γ—2=1.1104β†’0.0100101011βˆ’10.1104Γ—2=0.2208β†’0.01001010110\footnotesize 0.3888\times 2=0.7776 \rightarrow \textcolor{red}{0.01001010}\\\footnotesize 0.7776\times 2=1.5552 \rightarrow \textcolor{red}{0.010010101}\\\textcolor{blue}{-1}\\\footnotesize 0.5552\times 2=1.1104 \rightarrow \textcolor{red}{0.0100101011} \\\textcolor{blue}{-1}\\\footnotesize 0.1104\times 2 = 0.2208 \rightarrow \textcolor{red}{0.01001010110} \\0.3888Γ—2=0.7776β†’0.010010100.7776Γ—2=1.5552β†’0.010010101βˆ’10.5552Γ—2=1.1104β†’0.0100101011βˆ’10.1104Γ—2=0.2208β†’0.01001010110

It doesn't stop! Why is the binary fraction still growing? Let's take a look at the reason in the next section.

The conversion from binary fraction to decimal fraction

Now that you know how to convert from a decimal fraction to a binary let's learn the other way round. Take a binary fraction, any binary fraction! Did you think of 0.01101010.01101010.0110101? Great β€” so did we. πŸ˜†

The rule behind this conversion is that every digit's position corresponds to a negative power of two.

1β†’20=110.1β†’2βˆ’1=121=120.01β†’2βˆ’2=122=140.001β†’2βˆ’3=123=180.0001β†’2βˆ’4=124=1160.00001β†’2βˆ’5=125=1321\rightarrow 2^0=\tfrac{1}{1}\\[0.5em]0.1\rightarrow 2^{-1}=\tfrac{1}{2^1}=\tfrac{1}{2}\\[0.5em]0.01\rightarrow 2^{-2}=\tfrac{1}{2^2}=\tfrac{1}{4}\\[0.5em]0.001\rightarrow 2^{-3}=\tfrac{1}{2^3}=\tfrac{1}{8}\\[0.5em]0.0001\rightarrow 2^{-4}=\tfrac{1}{2^4}=\tfrac{1}{16}\\[0.5em]0.00001\rightarrow 2^{-5}=\tfrac{1}{2^5}=\tfrac{1}{32}1β†’20=11​0.1β†’2βˆ’1=211​=21​0.01β†’2βˆ’2=221​=41​0.001β†’2βˆ’3=231​=81​0.0001β†’2βˆ’4=241​=161​0.00001β†’2βˆ’5=251​=321​

πŸ™‹ We included the 0th power of two, which equals 111, only to give a better understanding of this positional conversion. Remember to limit your conversions to numbers smaller than 111!

Take your binary fraction and rewrite it, multiplying each digit by the respective power of 2. Then sum them together.

0.0110101β†’0Γ—120+0Γ—121+1Γ—122+1Γ—123+0Γ—124+1Γ—125+0Γ—126+1Γ—1270.0110101 \rightarrow\\[0.5em]\begin{align*}\footnotesize 0\!\times\! \frac{1}{2^{0}}+0\!\times\!\frac{1}{2^1}+& \footnotesize1\!\times\!\frac{1}{2^2}+1\!\times\!\frac{1}{2^3} \\[0.5em]\footnotesize +\ 0\!\times\!\frac{1}{2^4}+1\!\times\!\frac{1}{2^5}+&\footnotesize 0\!\times\!\frac{1}{2^6}+1\!\times\!\frac{1}{2^7}\end{align*}0.0110101β†’0Γ—201​+0Γ—211​++0Γ—241​+1Γ—251​+​1Γ—221​+1Γ—231​0Γ—261​+1Γ—271​​

Convert the fractions to their decimal equivalents:

0Γ—1+0Γ—0.5+1Γ—0.25++1Γ—0.125+0Γ—0.0625++1Γ—0.03125+0Γ—0.015625++1Γ—0.0078125=0.4140625\footnotesize 0\!\times\! 1+0\!\times\! 0.5+1\!\times\! 0.25+\\\footnotesize +1\!\times\! 0.125+0\!\times\! 0.0625+\\\footnotesize +1\!\times\! 0.03125+0\!\times\! 0.015625+\\\footnotesize +1\!\times\! 0.0078125 = 0.41406250Γ—1+0Γ—0.5+1Γ—0.25++1Γ—0.125+0Γ—0.0625++1Γ—0.03125+0Γ—0.015625++1Γ—0.0078125=0.4140625

And that's it β€” we've converted a decimal fraction to a binary fraction!


The limitations of binary fractions

Binary fractions can't represent every decimal fraction perfectly. It's entirely possible for decimal fractions with a finite number of decimal digits (rational) to have an infinitely long binary representation. Such a conversion results in an error, with the magnitude of the error depending on the number of digits of the representation.

Take a look at the conversion from decimal fraction to binary fraction. It is possible to build every decimal number with a sum of the negative powers of 222.


This is a geometric series that converges to 111. By removing elements ad hoc, you can obtain every number between 000 and 111; however, the real issue here is to decide which contributions we must erase.

Since computers have a limited amount of memory β€” they can compute only up to a certain number of digits β€” some contributions that allow for the exact representation of a decimal fraction may be left out.

Consider the fraction 15\frac{1}{5}51​, in an 888 digits representation.


This is a finite fraction: the error in the 8-digit representation is zero.

Find its binary representation, you know how to do it, but we will help you this time!

0.2000Γ—2=0.4000β†’00.4000Γ—2=0.8000β†’00.8000Γ—2=1.6000β†’1βˆ’10.6000Γ—2=1.2000β†’1βˆ’10.2000Γ—2=0.4000β†’00.2000\times 2=0.4000\rightarrow \textcolor{red}{0}\\0.4000\times 2=0.8000\rightarrow \textcolor{red}{0}\\0.8000\times 2=1.6000\rightarrow \textcolor{red}{1}\\\textcolor{blue}{-1}\\0.6000\times 2=1.2000\rightarrow \textcolor{red}{1}\\\textcolor{blue}{-1}\\0.2000\times 2 = 0.4000\rightarrow \textcolor{red}{0}0.2000Γ—2=0.4000β†’00.4000Γ—2=0.8000β†’00.8000Γ—2=1.6000β†’1βˆ’10.6000Γ—2=1.2000β†’1βˆ’10.2000Γ—2=0.4000β†’0

The last step is the same as the first, and so if we keep going, we'll end up with a repeating sequence of 001100110011s:

0.210=0.001100110011…20.2_{10}=0.001100110011\ldots_{\ 2}0.210​=0.001100110011…2​

Let's truncate it at the eighth digit:


This truncated binary fraction is not equal to, even though we started there:


The conversion resulted in an error of 0.2βˆ’0.19921875=0.0007810.2-0.19921875=0.0007810.2βˆ’0.19921875=0.000781: small, but not negligible.

πŸ”Ž In modern computers, the truncation happens at 232323-th or 525252-th digit, the precision of single and double float variables. A 232323 digits truncation in the example before has an error equal to 7.15β‹…10βˆ’87.15\cdot 10^{-8}7.15β‹…10βˆ’8: extremely small, but still present.

The binary representation of a decimal fraction is exact only if 222 is the sole prime factor of the denominator: 1/21/21/2, 3/83/83/8, and 1013/10241013/10241013/1024 all have exact representations, on the other hand, 1/51/51/5 or 1/101/101/10 always have an error.

How to use our binary fraction converter?

You can use our binary fraction converters to convert from decimal fraction to binary and from binary fraction to decimal. Remember to pick the right one!

Select the number of digits you need in your representation. You won't be able to insert more than that number. The result will be truncated and not rounded!

Here's an example: select from binary to decimal, choose 4 digits, and input 0.10100.10100.1010. The result is 0.6250.6250.625, or 5/85/85/8.

Did you notice that its denominator has a single prime factor, 222? By inputting the number like that, we implicitly assumed that it was a finite binary fraction!

πŸ™‹ If you need a different number of digits than the one provided by our defaults, go in advanced mode and insert the desired value. Remember to refresh the calculator if you want to use the default values again! πŸ˜€

Beyond 0s and 1s

We hope our binary fraction converter helped you in learning this not-so-straightforward topic. 🀞

We have many other binary calculators: try our binary arithmetic calculator, or the dedicated tools:

  • Binary multiplication calculator;
  • Binary addition calculator.


Can all fractions be converted to binary?

Not all fractions can be exactly converted to binary: only if the denominator is a power of 2, the binary fraction will be finite. In every other case, there will be an error in the representation. The error's magnitude depends on the number of digits used to represent it.

How to convert fractions to binary?

Take a decimal fraction and start multiplying by two the decimal part. Every time the result is smaller than 1, add a 0 to the binary representation. If the result is greater or equal to 1, add a 1 to the binary representation and subtract 1 from the multiplication result. Proceed with multiplications until the result is 0 or you reach the desired amount of digits.

Learn more on how to represent fractions in binary on

How do you represent 0.5 in binary?

Multiply the 0.5 by 2: 0.5 Γ— 2 = 1.0. Since the result is 1, add 1 to the binary fraction: 0.1.

The remaining decimal part of the number is zero; thus, the representation is complete!

What is 0.1101 in decimal?

To convert from decimal to binary, you have to sum the negative powers of two corresponding to the positions of the 1s in the binary fraction.

In the case of 0.1101, you need to sum: (1/2 Γ— 1) + (1/4 Γ— 1) + (1/8 Γ— 0) + (1/16 Γ— 1) = 13/16 = 0.8125.

Binary Fraction Converter (2024)


How do you convert a fraction to binary? β€Ί

Here is the algorithm step-by-step:
  1. multiply the number by 2;
  2. get the fractional part for the next iteration;
  3. remember the integer remainder for the binary digit;
  4. repeat the steps until the fractional part is equal to 0;
  5. write the remainders in the non-reverse order.

Can you make all fractions with binary? β€Ί

Specifically, binary can only represent those numbers as a finite fraction where the denominator is a power of 2. Unfortunately, this does not include most of the numbers that can be represented as finite fraction in base 10, like 0.1.

What is 0.75 in binary? β€Ί

The decimal number 0.75 is written as 0.11 in binary.

What is 0.625 as a binary fraction? β€Ί

∴ The decimal value 0.625 equals to binary 0.101

This is with reference to Advt. No. 05/VSA/2022/AE/Civil.

What is an example of a binary fraction? β€Ί

For example, the binary representation of three (using three bits) is 011. The one's complement of this is 100, and the two's complement is 101, so minus three is 101. Shifting that two places to the right to give 1.01 is the same as dividing by four (diving by two and then by two again), and -3/4 is -0.75.

What is 0.1 in binary? β€Ί

The number 0.1 in binary

The number 0.1 can be represented in binary as 0.00011001100110011... . The pattern of 0011 repeats infinitely. We can't store the binary equivalent of decimal 0.1 .

What numbers Cannot be written in binary? β€Ί

The number 0.1 in the decimal system is an example - it can't be expressed correctly in the binary system: 0.1 = 0.00011001100110011... In this example, the sequence 0011 can be repeated forever, just as 3 is repeating forever in 0.333333... in the decimal system.

What is 0.125 in binary? β€Ί

The decimal +0.125 = 1/8 equals the dual 0.001 = 1.0 * 2^-3.

How is 7 written in binary? β€Ί

Decimal to Binary Table
Decimal NumberBinary Number
17 more rows

How do you convert 0.25 decimal to binary? β€Ί

Answer: The decimal value 0.25 is equivalent to the binary value 0.01 because we can convert 0.25 to binary by dividing 0.25 by 2 and recording the remainder until the quotient becomes 0. The resulting binary number is 0.01.

What is 0.375 in binary? β€Ί

So, 0.375 in decimal system is represented as 0.011 in binary.

What is 0.4 as a fraction? β€Ί

Answer: 0.4 can be written in a fraction as 4/10 or 2/5.

What is 8 in binary numbers? β€Ί

8 in binary is 1000. Unlike the decimal number system where we use the digits 0 to 9 to represent a number, in a binary system, we use only 2 digits that are 0 and 1 (bits). We have used 4 bits to represent 8 in binary.

What is 1 3 in binary? β€Ί

1/40.25 or 0.24999...0.01 or 0.00111...
1/50.2 or 0.1999...0.00110011...
12 more rows

What is 0.6875 as a binary number? β€Ί

0.6875 is the same as 11/16, or in base 2, 1011/10000 = 0.1011, which is also 1/2 + 1/8 + 1/16.

How to write 0.1 in binary? β€Ί

The number 0.1 can be represented in binary as 0.00011001100110011... .


Top Articles
Latest Posts
Article information

Author: Van Hayes

Last Updated:

Views: 6245

Rating: 4.6 / 5 (46 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Van Hayes

Birthday: 1994-06-07

Address: 2004 Kling Rapid, New Destiny, MT 64658-2367

Phone: +512425013758

Job: National Farming Director

Hobby: Reading, Polo, Genealogy, amateur radio, Scouting, Stand-up comedy, Cryptography

Introduction: My name is Van Hayes, I am a thankful, friendly, smiling, calm, powerful, fine, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.