What is a binary fraction?
A binary fraction is a number expressed in base 2 that includes digits after the binary point, just as decimal numbers have digits after the decimal point. The binary number system uses only two digits — 0 and 1 — and represents all values using powers of two. When a binary number includes a fractional part, each digit after the binary point represents a negative power of two.
For example, the binary number 101.101 represents:
Thus, 101.101₂ = 5.625₁₀.
How the binary fraction converter works
The binary fraction converter helps you convert any fractional number between binary and decimal systems automatically. You can also convert binary fractions to other number systems such as octal (base 8), hexadecimal (base 16), or any custom base between 2 and 36.
The process involves:
- Interpreting the integer part by summing the powers of 2 for each ‘1’ digit.
- Converting the fractional part by summing the corresponding negative powers of 2.
- Combining both parts to get the full decimal value or converting backward to binary by repeatedly dividing or multiplying by 2.
This converter operates instantly — there’s no need to press “calculate”, as results adjust automatically when input values change.
Step-by-step example
Let’s convert into binary.
- Convert the integer part (10):
| Division | Quotient | Remainder |
|---|---|---|
| 10 ÷ 2 | 5 | 0 |
| 5 ÷ 2 | 2 | 1 |
| 2 ÷ 2 | 1 | 0 |
| 1 ÷ 2 | 0 | 1 |
Reading remainders from bottom to top:
- Convert the fractional part (0.625):
| Multiplication | Result | Integer part |
|---|---|---|
| 0.625 × 2 | 1.25 | 1 |
| 0.25 × 2 | 0.5 | 0 |
| 0.5 × 2 | 1.0 | 1 |
Thus, .
- Combine both parts:
Converting a binary fraction to decimal
Convert to decimal:
Hence, 110.011₂ = 6.375₁₀.
Converting binary fractions to other bases
To octal (base 8)
Group bits in sets of three from the binary point outward (integer part left, fractional part right). Fill with zeros if necessary.
Example:
To hexadecimal (base 16)
Group bits in sets of four:
Hence .
Notes on binary fractions
- Some decimal fractions cannot be represented exactly in binary (e.g., 0.1, 0.2, 0.3). They form repeating binary sequences, similar to how 1/3 = 0.333… in decimal notation.
- Computers internally handle real numbers in floating-point format, rigorously adhering to binary fraction representations, which is why small rounding errors occasionally occur in programming.
- The maximum precision depends on the chosen number of bits for the fractional part — the more bits, the higher the accuracy.
Historical insight
The binary number system traces back to the 17th century, formalized by Gottfried Wilhelm Leibniz, who recognized its connection to logic using only two symbols: 0 and 1. In modern computing, binary fractions became the foundation for digital signal encoding and numerical computation, allowing devices to perform arithmetic operations with incredible precision.
Frequently Asked Questions
How to convert 7.75 to binary step by step?
Integer part: . Fractional part: → 1; → 1. Combine both parts → .
Why can’t some decimal fractions be exactly converted to binary?
Because binary represents fractions as sums of reciprocals of powers of two, only numbers expressible as a sum of can be exact. Fractions like 0.1 (which require ) don’t end within this series, leading to an infinite repeating sequence.
How to convert binary fraction 0.011 to decimal?
Evaluate using formula: