0% found this document useful (0 votes)
20 views4 pages

Steps:: 1. Decimal To Binary Conversion (With Fractional Part)

Uploaded by

syednmlabib
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views4 pages

Steps:: 1. Decimal To Binary Conversion (With Fractional Part)

Uploaded by

syednmlabib
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

1.

Decimal to Binary Conversion (with fractional part)

Steps:

Integer part: Convert using regular division by 2.

Fractional part: Multiply by 2 and keep track of the integer parts.

Example: Convert 12.375 (decimal) to binary.

1. Convert the integer part (12):

12 ÷ 2 = 6, remainder = 0

6 ÷ 2 = 3, remainder = 0

3 ÷ 2 = 1, remainder = 1

1 ÷ 2 = 0, remainder = 1

So, 12 (decimal) = 1100 (binary).

2. Convert the fractional part (0.375):

0.375 × 2 = 0.75, integer part = 0

0.75 × 2 = 1.5, integer part = 1

0.5 × 2 = 1.0, integer part = 1 (fractional part becomes 0, stop here)

So, 0.375 (decimal) = 0.011 (binary).

Final result:

12.375 (decimal) = 1100.011 (binary)

2. Binary to Decimal Conversion (with fractional part)

Steps:

Integer part: Convert by multiplying each binary digit by 2 raised to the power of its position.

Fractional part: Multiply each digit by 2 raised to the negative power of its position.

Example: Convert 1100.011 (binary) to decimal.

1. Integer part:

1 x 2^3 + 1 x 2^2 + 0 x 2^1 + 0 x 2^0 = 8 + 4 + 0 + 0 = 12

2. Fractional part:

0 x 2^{1} + 1 x 2^{2} + 1 x 2^{3} = 0 + 0.25 + 0.125 = 0.375

Final result:
1100.011 (binary) = 12.375 (decimal)

3. Decimal to Octal Conversion (with fractional part)

Steps:

Integer part: Convert using regular division by 8.

Fractional part: Multiply the fractional part by 8 and keep track of the integer parts.

Example: Convert 156.375 (decimal) to octal.

1. Convert the integer part (156):

156 ÷ 8 = 19, remainder = 4

19 ÷ 8 = 2, remainder = 3

2 ÷ 8 = 0, remainder = 2

So, 156 (decimal) = 234 (octal).

2. Convert the fractional part (0.375):

0.375 × 8 = 3.0, integer part = 3 (fractional part becomes 0, stop here)

So, 0.375 (decimal) = 0.3 (octal).

Final result:

156.375 (decimal) = 234.3 (octal)

4. Octal to Decimal Conversion (with fractional part)

Steps:

Integer part: Convert by multiplying each octal digit by 8 raised to the power of its position.

Fractional part: Multiply each digit by 8 raised to the negative power of its position.

Example: Convert 234.3 (octal) to decimal.

1. Integer part:

2 x 8^2 + 3 x 8^1 + 4 x 8^0 = 2 x 64 + 3 x 8 + 4 x 1 = 128 + 24 + 4 = 156

2. Fractional part:

3 x 8^{1} = 3 x frac{1}{8} = 0.375

Final result:

234.3 (octal) = 156.375 (decimal)

5. Decimal to Hexadecimal Conversion (with fractional part)


Steps:

Integer part: Convert using regular division by 16.

Fractional part: Multiply the fractional part by 16 and keep track of the integer parts.

Example: Convert 156.375 (decimal) to hexadecimal.

1. Convert the integer part (156):

156 ÷ 16 = 9, remainder = 12 (C in hexadecimal)

9 ÷ 16 = 0, remainder = 9

So, 156 (decimal) = 9C (hexadecimal).

2. Convert the fractional part (0.375):

0.375 × 16 = 6.0, integer part = 6 (fractional part becomes 0, stop here)

So, 0.375 (decimal) = 0.6 (hexadecimal).

Final result:

156.375 (decimal) = 9C.6 (hexadecimal)

6. Hexadecimal to Decimal Conversion (with fractional part)

Steps:

Integer part: Convert by multiplying each hexadecimal digit by 16 raised to the power of its position.

Fractional part: Multiply each digit by 16 raised to the negative power of its position.

Example: Convert 9C.6 (hexadecimal) to decimal.

1. Integer part:

9 x 16^1 + C(12) x 16^0 = 9 x 16 + 12 x 1 = 144 + 12 = 156

2. Fractional part:

6 x 16^{1} = 6 x frac{1}{16} = 0.375

Final result:

9C.6 (hexadecimal) = 156.375 (decimal)

7. Binary to Hexadecimal Conversion (with fractional part)

Steps:

Integer part: Group binary digits into groups of four and convert each group to hexadecimal.

Fractional part: Group binary digits into sets of four, and convert them into hexadecimal digits.
Example: Convert 101101.011 (binary) to hexadecimal.

1. Convert the integer part (101101):

Group as (10) (1101)

(10 = 2) and (1101 = D)

So, 101101 (binary) = 2D (hexadecimal).

2. Convert the fractional part (011):

Group as (0110)

(0110 = 6)

So, 0.011 (binary) = 0.6 (hexadecimal).

Final result:

101101.011 (binary) = 2D.6 (hexadecimal)

8. Hexadecimal to Binary Conversion (with fractional part)

Steps:

Integer part: Convert each hexadecimal digit to its 4bit binary equivalent.

Fractional part: Convert each hexadecimal digit to its 4bit binary equivalent.

Example: Convert 2D.6 (hexadecimal) to binary.

1. Convert the integer part (2D):

(2 = 0010), (D = 1101)

So, 2D (hexadecimal) = 00101101 (binary).

2. Convert the fractional part (6):

(6 = 0110)

So, 0.6 (hexadecimal) = 0.0110 (binary).

Final result:

2D.6 (hexadecimal) = 101101.0110 (binary)

You might also like