Convert a decimal fraction to octal by repeated multiplication by 8, with exact repeating-digit detection instead of silent rounding.
Show calculation steps
Processed privately in your browser — nothing you paste is uploaded, logged or stored.
Multiplying by eight
Decimal fractions convert to octal by repeated multiplication: times eight, take the integer digit 0–7, repeat. Termination follows the universal rule — only power-of-two denominators finish, since octal’s base is 2³. Fifths and tenths therefore cycle forever, and this page detects the cycle exactly.
The parenthesised repeat notation, backed by remainder tracking, distinguishes truth from truncation — the difference between an answer and an approximation.
Worked example
Input: 7.5 Integer: 7 → 7 Fraction: 0.5 × 8 = 4.0 → digit 4, done Result: 7.4 (terminates: 0.5 = 4/8 exactly)
A repeating case
Input: 0.2 0.2 × 8 = 1.6 → 1 0.6 × 8 = 4.8 → 4 0.8 × 8 = 6.4 → 6 0.4 × 8 = 3.2 → 3 0.2 recurs → cycle! Result: 0.(1463) — the block 1463 repeats forever
Why bother with octal fractions now
Beyond coursework and history, the exercise teaches the base-independence of the terminate-or-repeat rule better than binary does — cycles are shorter and visible. Anyone implementing radix conversion (formatting libraries, arbitrary-precision tools) tests against exactly these cases.
Precision and privacy
Display budget adjustable, arithmetic exact, truncation labelled. Local processing without exception.
What the multiply-by-8 loop is really doing
Multiplying the fraction by eight and taking the integer part is exactly the same as peeling off the next three binary fraction bits at once, because 8 is 2³. That is why the decimal fractions that terminate in octal are precisely the ones whose denominators are powers of two: 0.5 becomes 0.4₈ and 0.125 becomes 0.1₈, but a value like one fifth cycles forever as 0.146314631463…₈, repeating the block “1463”. The exact arithmetic in this tool detects that cycle and reports it instead of quietly truncating.
How to use the Decimal Fraction to Octal Converter
- Enter a decimal value with a fractional part, such as 7.5 or 0.2.
- Set the display precision.
- Click "Convert to octal".
- Repeating octal digits appear in parentheses with an explanation.
Frequently asked questions
How does repeated multiplication by 8 work?
Multiply the fraction by 8; the integer part (0-7) is the next octal digit; repeat with what remains. 0.5 × 8 = 4.0 → digit 4, done: 7.5 = 7.4 octal.
Which decimal fractions repeat forever in octal?
Any whose reduced denominator has a factor other than 2 – fifths and tenths included. 0.2 = 1/5 becomes 0.(1463) in octal, the block 1463 recurring; the tool proves it by remainder tracking.
Octal vs binary fraction – what is the relationship?
One octal fraction digit = three binary fraction digits, exactly. 0.101 binary = 0.5+0.125 = 0.625 = 0.5 octal – regrouping works below the point exactly as above it.
What does the truncation notice mean?
That within your digit budget the expansion neither ended nor began repeating. The shown digits are correct as far as they go; raising the precision reveals more.
Why is my repeating block so long?
Cycle length equals the multiplicative order of 8 modulo the reduced denominator – it can approach the denominator's size. A denominator of 81 can cycle for dozens of digits; that is number theory, not a bug.
Practical uses of decimal-to-octal fractions?
Mostly educational and archival – understanding old machine formats and radix arithmetic in general. Modern fixed-point work happens in binary/hex, but the mathematics is identical.
Is the conversion private?
Fully – browser-local exact arithmetic, with nothing transmitted.