Convert decimal numbers (integers and floats) to octal instantly with batch conversion support. Essential tool for programmers, students, and engineers.
Batch Conversion: Convert multiple decimal numbers at once. Enter one decimal value per line, or separate values with commas, spaces, or tabs. Supports integers and floating-point numbers.
Octal is a base-8 numeral system that uses digits 0 through 7. Floating-point numbers in octal consist of two parts: an integer part and a fractional part separated by a radix point (octal point).
Floating-Point Conversion Algorithm:
Important Notes on Float Conversion:
| Octal Digit | Decimal Value | Binary (3-bit) | Octal Digit | Decimal Value | Binary (3-bit) |
|---|---|---|---|---|---|
| 0 | 0 | 000 | 4 | 4 | 100 |
| 1 | 1 | 001 | 5 | 5 | 101 |
| 2 | 2 | 010 | 6 | 6 | 110 |
| 3 | 3 | 011 | 7 | 7 | 111 |
Decimal 10.5 to Octal: Integer part 10 = 12₈, Fractional part 0.5 × 8 = 4.0 → integer 4, so 10.5₁₀ = 12.4₈
Decimal 0.1 to Octal: 0.1 × 8 = 0.8 → integer 0, 0.8 × 8 = 6.4 → integer 6, 0.4 × 8 = 3.2 → integer 3, etc. So 0.1₁₀ ≈ 0.06314...₈ (repeating)
Decimal 3.14159 to Octal: Integer part 3 = 3₈, Fractional part 0.14159 × 8 = 1.13272 → integer 1, 0.13272 × 8 = 1.06176 → integer 1, etc. So 3.14159₁₀ ≈ 3.11037...₈
Calculator Features:
10.5
12.4
0.5
0.4
0.25
0.2
3.14159
3.11037...
15.75
17.6
255.125
377.1
0.1
0.06314...