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.
Steps will appear here after you enter a decimal number with a fractional part.
Steps will appear here after you enter a binary number with a fractional part.
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
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:
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:
| Step | Calculation | Integer (bit) | Remaining fraction |
|---|---|---|---|
| 1 | 0.625 x 2 = 1.25 | 1 | 0.25 |
| 2 | 0.25 x 2 = 0.5 | 0 | 0.5 |
| 3 | 0.5 x 2 = 1.0 | 1 | 0 (exact) |
Binary fraction: .101. Combined result: 110.101
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.
| Decimal | Binary | Exact? |
|---|---|---|
| 0.5 | 0.1 | Yes |
| 0.25 | 0.01 | Yes |
| 0.125 | 0.001 | Yes |
| 0.75 | 0.11 | Yes |
| 0.625 | 0.101 | Yes |
| 0.1 | 0.0001100110011... (repeating) | No |
| 0.3 | 0.0100110011... (repeating) | No |
| 6.625 | 110.101 | Yes |
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.
If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.
Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.
Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.
Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.
Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use
Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.
© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.