Convert the following: (103.6)10 = (?)16
Q.) Convert the following: (103.6)10 = (?)16
Subject: Digital System DesignTo convert a decimal number to hexadecimal, we need to follow these steps:
- Divide the decimal number by 16.
- Write down the remainder.
- Divide the quotient of the previous division by 16.
- Repeat steps 2 and 3 until we get a quotient of zero.
- The hexadecimal number is the string of remainders read in reverse order.
Let's convert (103.6)10 to hexadecimal.
First, we will convert the integer part (103)10:
Division by 16 | Quotient | Remainder |
---|---|---|
103 / 16 | 6 | 7 |
6 / 16 | 0 | 6 |
Reading the remainders in reverse order gives us 67.
Next, we will convert the fractional part (.6)10:
- Multiply the fraction by 16.
- The whole number part of the result is the first digit of the hexadecimal fraction.
- Repeat the process with the fractional part of the result.
Multiplication by 16 | Result | Integer Part |
---|---|---|
0.6 * 16 | 9.6 | 9 |
0.6 * 16 | 9.6 | 9 |
... | ... | ... |
We can stop here or continue until we get a repeating pattern or until the fractional part becomes zero. For this example, we will stop here.
So, the hexadecimal representation of (103.6)10 is (67.99)16.