You can put this solution on YOUR website!
Decimal number is converted into binary by dividing the number successively by and printing the remainder in reverse order.
Divide the number by .
.....remainder .....remainder
.....remainder .....remainder .....remainder
so far binary number is , here comes decimal point
after that you have
.....remainder .....remainder .....remainder .....remainder .....remainder .....remainder .....remainder .....remainder .....remainder .....remainder .....remainder .....remainder .....remainder .....remainder .....remainder
:
so on up to reminder is
Binary number:
when I convert it to decimal, I got
which is approximately
Note if the 312.117 was an approximation and the number being converted is actually 17.66666... = 17 2/3, the binary representation can be found exactly. The whole number part is still 10001 binary; to find the binary representation of the fraction 2/3...