Decimal to binary, decimals included
Convert a decimal number — whole or with a fractional part — to binary, with octal and hexadecimal shown alongside. Fractional parts are converted by repeated doubling and the tool says explicitly whether the binary fraction terminates or repeats forever.
How to use
- Enter a decimal number (a fractional part is optional)
- Press Convert
- Read the binary result, plus octal/hex for the whole part, with the division and doubling steps shown
Common questions
Does this handle numbers with a decimal point, like 10.5?
Yes — the whole part is converted by repeated division as usual, and the fractional part is converted separately by repeated doubling, shown as its own step in the working. This is the key difference from the Binary/Decimal Converter, which only handles whole numbers.
Why does my fractional part get cut off instead of ending cleanly?
Some decimals, like 0.1, never terminate in binary no matter how far you carry the doubling out — the tool follows it for 24 bits and says explicitly whether it stopped naturally or was cut off, rather than pretending an endless fraction has a clean ending.
Can I convert a negative number?
No — negative numbers in binary need either a sign convention or a fixed bit-width for two's complement, and this tool doesn't assume one for you. Enter a number of 0 or above.