Fractional Binary to Fractional Decimal
- Assign each bit a 2 to the power of -n where n is position of bit from right of decimal point.
- Multiply each power with its corresponding bit value.
- Sum of all multiplication values of each bit will be final answer. Example:
Fractional Decimal to Fractional Binary
- Multiply fractional part of decimal number by 2
- If value is greater than 1, set the binary bit to 1 and carry the fractional part of value to next operation.
- If value is less than 1, set binary bit to 0 and carry fractional part of value to next operation.
- Use carry as value and start from step 1.
- Repeat step 1-4 until carry is zero. Successively multiply fractional values by 2 until fractional value is 0. Example:
0.8125 (multiply by 2) = 1.625 = 0.625 carry 1 (MSB) 0.625 (multiply by 2) = 1.25 = 0.25 carry 1 (↓) 0.25 (multiply by 2) = 0.50 = 0.5 carry 0 (↓) 0.5 (multiply by 2) = 1.00 = 0.0 carry 1 (LSB)