Binary Fraction Converter

This converter works both ways between decimal fractions and binary fractions, handling mixed numbers with both a whole-number part and digits after the point. Enter a decimal number such as 6.625 into the Decimal to Binary field and choose a fractional precision of 8, 16 or 32 bits, and the tool splits it into integer and fractional parts, converts the integer using repeated division by 2 and the fraction using repeated multiplication by 2, then returns the combined binary result with a full step-by-step breakdown of each multiplication and the bit it produces. Enter a binary number such as 110.101 into the Binary to Decimal field and it separates the integer and fractional bits, applies the correct power-of-2 weight to each fractional digit (0.5, 0.25, 0.125 and so on), and totals them to give you the decimal equivalent, again with every step shown. Both results tell you whether the conversion is exact or truncated, because only decimal fractions whose denominator is a power of 2 (like 0.5, 0.25 or 0.625) convert exactly to binary; others, such as 0.1 or 0.3, repeat forever and are cut off at your chosen precision, which is why computers can produce small rounding errors with everyday decimals. Use this tool to check homework, understand floating-point behaviour, or learn how binary fractions are built bit by bit.

Calculate.co.nz is proud to be partnered with Premium Homes, a recognised leader in eco-friendly, sustainable, and energy-efficient homebuilding. With a dedicated team and award-winning experience, they create homes that prioritise health, comfort, and long-term performance. Their founders, Andrew and Kelly, set out to raise the standard of residential construction in New Zealand by combining practical building expertise with a clear commitment to doing things better for homeowners.
Calculate.co.nz partner: Premium Homes
Standard conversion method  Repeated multiplication (decimal to binary) and positional weights (binary to decimal). Max 32 fractional bits.

1. Decimal to Binary

2. Binary to Decimal

Conversion Results

Decimal to Binary Result
110.101
Exact conversion
Binary to Decimal Result
6.625
Decimal equivalent

Decimal to Binary Breakdown

Input (decimal)6.625
Integer part6
Fractional part0.625
Integer in binary110
Fraction in binary.101
Exact?Yes
Combined binary110.101

Binary to Decimal Breakdown

Input (binary)110.101
Integer part110
Fractional part101
Integer value6
Fractional value0.625
Total decimal value6.625

Step-by-Step: Decimal Fraction to Binary (Repeated Multiplication by 2)

Steps will appear here after you enter a decimal number with a fractional part.

Step-by-Step: Binary Fraction to Decimal (Positional Weights)

Steps will appear here after you enter a binary number with a fractional part.

How Binary Fractions Work

In binary (base 2), the digit positions to the left of the binary point represent positive powers of 2 (1, 2, 4, 8, ...) and positions to the right represent negative powers of 2 (1/2, 1/4, 1/8, 1/16, ...). This is directly analogous to how decimal fractions work, except the base is 2 instead of 10.

For example, the binary number 110.101 means:

Total: 4 + 2 + 0 + 0.5 + 0 + 0.125 = 6.625

Converting Decimal Fractions to Binary

The integer part of a decimal number is converted to binary using the standard repeated division by 2 method. The fractional part is converted separately using repeated multiplication by 2:

  1. Multiply the fractional part by 2.
  2. The integer part of the result (0 or 1) becomes the next binary digit after the point.
  3. Keep only the new fractional part and repeat.
  4. Stop when the fractional part reaches 0 (exact result) or you have reached your required precision.

Worked Example: 6.625 to Binary

Integer part 6: 6 / 2 = 3 remainder 0, 3 / 2 = 1 remainder 1, 1 / 2 = 0 remainder 1. Reading remainders upward: 110.

Fractional part 0.625:

StepCalculationInteger (bit)Remaining fraction
10.625 x 2 = 1.2510.25
20.25 x 2 = 0.500.5
30.5 x 2 = 1.010 (exact)

Binary fraction: .101. Combined result: 110.101

When Exact Conversion is Not Possible

Only decimal fractions whose denominator is a power of 2 convert exactly to binary. Common exact examples include 0.5 (= 1/2 = 0.1 in binary), 0.25 (= 1/4 = 0.01), 0.125 (= 1/8 = 0.001), and 0.75 (= 3/4 = 0.11). Fractions such as 0.1, 0.2, and 0.3 produce infinitely repeating binary sequences. This converter caps output at 32 fractional bits and notes when the result is approximate.

Common Reference Values

DecimalBinaryExact?
0.50.1Yes
0.250.01Yes
0.1250.001Yes
0.750.11Yes
0.6250.101Yes
0.10.0001100110011... (repeating)No
0.30.0100110011... (repeating)No
6.625110.101Yes

Related Calculators

Method: Decimal integer parts are converted to binary by repeated division by 2 (collecting remainders). Decimal fractional parts are converted by repeated multiplication by 2 (collecting integer parts). Binary numbers are converted to decimal using positional weights: each bit at position n after the binary point contributes bit x 2-n. The converter applies up to 32 fractional bits and flags results that are truncated rather than exact.

This converter is provided for educational and practical use. Repeating binary fractions are shown to the selected precision and flagged as approximate. For integer-only binary conversions, use the Binary Converter or Decimal to Binary Calculator.