0% found this document useful (0 votes)
81 views6 pages

Lab1 2019470 Jatin

The document describes procedures for converting between binary, decimal, hexadecimal, and octal number systems. It provides examples of converting specific numbers between the different bases. The numbers are broken down into their constituent place values in the target base to calculate the equivalent value.

Uploaded by

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

Lab1 2019470 Jatin

The document describes procedures for converting between binary, decimal, hexadecimal, and octal number systems. It provides examples of converting specific numbers between the different bases. The numbers are broken down into their constituent place values in the target base to calculate the equivalent value.

Uploaded by

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

2.1.

1) conversion from binary to decimal

1) 1010 1011 1100 1101 in binary

Therefore, the decimal value is,

2^15+2^13+2^11+2^9+2^8+2^7+2^6+2^3+2^2+2^0

= (43981) ₁₀

2) 1111 1110 1101 1100 in binary

Therefore, the decimal value is,

2^15+2^14+2^13+2^12+2^11+2^10+2^9+2^7+2^6+2^4+2^3+2^2

= (65244) ₁₀

3)0111 1101 1111 1000 in binary

2^14 +2^13+2^12+2^11+2^10+2^8+2^7+2^6+2^5+2^4+2^3

Therefore, the decimal value is,

= (32248) ₁₀

4)0011 0000 0011 1001 in binary

Therefore, the decimal value is,

2^13+2^12+2^5+2^4+2^3+2^0

= (12345) ₁₀

2.1.2) conversion from hexadecimal to decimal

1) a000

(a000) ₁₆ = (10 × 16³) + (0 × 16²) + (0 × 16¹) + (0 × 16⁰) = (40960) ₁₀

2)8a89

(8a89) ₁₆ = (8 × 16³) + (10 × 16²) + (8 × 16¹) + (9 × 16⁰) = (35465) ₁₀

3)0190

(0190) ₁₆ = (0 × 16³) + (1 × 16²) + (9 × 16¹) + (0 × 16⁰) = (400) ₁₀

4)afcd

(afcd)₁₆ = (10 × 16³) + (15 × 16²) + (12 × 16¹) + (13 × 16⁰) = (45005) ₁₀
2.1.3) conversion from hexadecimal to octal

1)a000

Convert Hexa Decimal number to binary

a 0 0 0

1010 0000 0000 0000

a00016=10100000000000002

Convert Binary Number into Octal Number

Split the binary number from left to right each group 3 bits

001 010 000 000 000 000

1 2 0 0 0 0

10100000000000002=1200008

2) 8a89

Convert Hexa Decimal number to binary

8 a 8 9

1000 1010 1000 1001

8a8916=10001010100010012

Convert Binary Number into Octal Number

Split the binary number from left to right each group 3 bits

001 000 101 010 001 001

1 0 5 2 1 1

10001010100010012=1052118

3) 0190

Convert Hexa Decimal number to binary


0 1 9 0

0000 0001 1001 0000

019016=1100100002

Convert Binary Number into Octal Number

Split the binary number from left to right each group 3 bits

110 010 000

6 2 0

110010000 2=620 8

4.) afcd

Convert Hexa Decimal number to binary

a f c d

1010 1111 1100 1101

afcd16=10101111110011012

Convert Binary Number into Octal Number

Split the binary number from left to right each group 3 bits

001 010 111 111 001 101

1 2 7 7 1 5

1010111111001101 2=127715 8

2.1.4) conversion of 16- bit binary to octal

1) 1010 1011 1100 1101

Split the binary number from left to right each group 3 bits

001 010 101 111 001 101


1 2 5 7 1 5

10101011110011012=1257158

2) 1111 1110 1101 1100

Split the binary number from left to right each group 3 bits

001 111 111 011 011 100

1 7 7 3 3 4

11111110110111002=1773348

3) 0111 1101 1111 1000

Split the binary number from left to right each group 3 bits

000 111 110 111 111 000

0 7 6 7 7 0

01111101111110002=767708

4) 0011 0000 0011 1001

Split the binary number from left to right each group 3 bits

000 011 000 000 111 001

0 3 0 0 7 1

00110000001110012=300718

You might also like