Why 0.1 Cannot Be Stored Exactly in Binary
Decimal 0.1 looks simple in base 10 because 1/10 terminates there. In base 2 the same fraction is the repeating expansion 0.0(0011) — a leading 0 after the point, then the period 0011 forever. A finite significand cannot hold that loop, so every binary float rounds. FlashKit’s decimal to binary converter with the ×2 table prints 0.0(0011) = 0.0001100110011001... when you type 0.1. Hex and octal of the same rational use the same parenthesis-plus-ellipsis form. The rounded IEEE encoding is the IEEE 754 float converter, bit by bit.
Repeated ×2: why the period is 0011
To convert a fraction, multiply the remainder by 2 and emit the overflow bit.
| Step | ×2 | Bit | New remainder |
|---|---|---|---|
| 1 | 0.1 × 2 = 0.2 | 0 | 0.2 |
| 2 | 0.2 × 2 = 0.4 | 0 | 0.4 |
| 3 | 0.4 × 2 = 0.8 | 0 | 0.8 |
| 4 | 0.8 × 2 = 1.6 | 1 | 0.6 |
| 5 | 0.6 × 2 = 1.2 | 1 | 0.2 ← remainder seen at step 1 |
Step 5 returns remainder 0.2, which already appeared after step 1. Bits after the point are 0, then the cycle 0011. Written with a repeating marker: 0.0(0011). Expanded sixteen places: 0.0001100110011001. The converter’s fraction helper uses BigInt remainders of 1/10 and reports periodStart = 1 on bits 00011, which is that same 0 + (0011).
Type 0.1 on the Number tab
Read 0.0(0011) = 0.0001100110011001... Compare with 10.625 → 1010.101, which terminates.
Open the decimal to binary converterWhich fractions terminate?
A fraction terminates in base 2 only when its reduced denominator’s prime factors are all 2 — dyadic rationals. 5/8 = 0.625 is 0.101 (1/2 + 1/8). 10.625 is 1010.101. 1/2, 1/4, 3/4, 13/16 all terminate. 1/10, 1/3, 1/5, 1/6 do not. Base 10 is the same idea with primes 2 and 5: 1/8 = 0.125 terminates in decimal because 2 divides 10, but 1/3 = 0.333… repeats.
IEEE 754 binary64 (JavaScript Number) stores a sign bit, an 11-bit exponent, and a 52-bit stored fraction with an implicit leading 1, for 53 significant bits. 0.1 rounded to that format is 0x3FB999999999999A (big-endian). The unbiased exponent is −4, and the significand is a rounded 1.1001100…×2−4. The last nibble is a (1010) rather than an infinite 1001 cycle — that is the rounding. Adding two such values is why 0.1 + 0.2 === 0.30000000000000004 in JavaScript.
FlashKit’s converter is not a float emulator. It shows the exact repeating expansion of the rational you typed, then a truncated preview. Integer two’s complement (−5 = 11111011) is a different job: the two’s complement calculator. Adding two bit strings is the binary calculator with steps. Keep 0.1 on the Number tab of the converter.
Compare 10.625 and 0.1
10.625 is exact 1010.101. 0.1 keeps the repeating marker. Open Step-by-step working for the ×2 lines.
Open the binary converterWhat to write on a worksheet
If the question is “convert 0.1 to binary,” the honest answer is the repeating form 0.0(0011) or a truncated string plus an ellipsis. If the question is “what does the computer store?,” the answer is a rounded binary64 (or binary32) encoding, not the infinite period. Mixing those two is the usual source of “but I typed 0.1.” The converter labels the repeating case; it does not pretend 0.1 has a short exact bit string.
What this guide is actually for
0.1 is 0.0(0011) repeating in binary. Why IEEE floats round it, and how FlashKit shows the repeating expansion. This article is a knowledge-base companion, not a doorway page and not a substitute for the interactive tool. FlashKit prerenders the full HTML at build time so you can read it without waiting for a client bundle. Claims below match the code: local tools stay in the tab; network tools disclose proxies or APIs before they send a URL or photo.
If a third-party roundup promised a FlashKit URL that 404s (PDF-to-Word, HTML-to-Markdown, HTML/CSS/JS minifiers, social downloaders), that product is not in the catalog. Use the live tools linked here instead of hunting retired slugs.
Tools that pair with this topic
Open the matching utility when you want to try the steps, then come back to this page for the why. Related tools for Why 0.1 Cannot Be Stored Exactly in Binary:
- Binary Translator — Convert text to binary code and binary to text.
- Decimal to Binary Converter — Convert decimal to binary with repeated ÷2, fractions, and two’s complement steps.
- IEEE 754 Float Converter — Inspect float32 and float64 bits, hex, and the exact stored decimal. Click a bit to toggle it.
- Binary Calculator — Add, subtract, multiply and divide binary numbers with step-by-step working.
- Two's Complement Calculator — Convert decimal to two's complement binary and back at 4, 8, 16, 32 or 64 bits.
Start with the Binary Translator. Read the on-page how-to and FAQ there — they describe the same browser session this guide refers to, including whether a file is uploaded.
A practical workflow
- Decide whether the job is local (PDF, image, password, encoding, India tax math) or needs a public URL fetch (SEO audit, Open Graph, WHOIS). Do not paste secrets into fetch tools.
- Use the matching FlashKit page linked above. Consent checkboxes on network tools are required before the request leaves the browser.
- Copy or download the result from this tab. FlashKit does not keep a locker or an account.
- Verify the output: validate HTML, preview OG tags, open a PDF, or count characters for a caption limit — whatever the job actually needs.
- If you came from a locale URL, the canonical English guide is the one search engines should index for this topic, except selected Hindi translations.
Honest limits
FlashKit is a free Vite/React tools site. It is not a bank, GSTN portal, SEBI adviser, PDF-to-Word OCR engine, social downloader, or cloud CDN. Finance calculators are arithmetic. SEO audits use public CORS proxies and are not Search Console. AdSense and GA4 load in the document head; see the privacy policy for cookies, and the terms of use for acceptable use. Contact: support@flashkit.tools.
YouTube thumbnail, Instagram, TikTok, Facebook, and X/Twitter downloaders are not offered; those URLs 301 to a live tool. Mute a file you already have.
Related reading on FlashKit
- Convert Text to Binary (Unicode) — How FlashKit’s binary converter turns letters into space-separated Unicode binary tokens — and why that is not UTF-8, hex, or a firmware dump.
- What Is Punycode? IDN to ASCII (xn--) — Why internationalized domain names show up as xn-- labels, how to convert IDN to ASCII in the browser, and how to spot lookalike characters.
- Text to Hex: How ASCII and UTF-8 Hex Encoding Works — Convert text to hexadecimal by hand and online. Worked examples show why "Hi" is 48 69 but ₹ becomes E2 82 B9 in UTF-8, plus spacing and 0x formats.
- How to Read Binary Code: Letters to Text, Step by Step — Read binary code by hand: split into 8-bit bytes, add place values, map to ASCII. Worked examples decode Hi and FlashKit, then check with a translator.
The knowledge base index lists every English guide. Category hubs (SEO, Media, Finance, and the rest) list the live tools. None of this copy invents user counts, SLAs, or features the code does not ship.