0% found this document useful (0 votes)
4 views8 pages

1-b Example Math - Number System Conversion

The document provides detailed methods for converting numbers between different numeral systems, including binary, decimal, octal, and hexadecimal. It includes examples for each type of conversion, demonstrating the calculations involved. The document also outlines the rules for grouping bits during conversions for both integer and fractional parts.

Uploaded by

Munim Shakib
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)
4 views8 pages

1-b Example Math - Number System Conversion

The document provides detailed methods for converting numbers between different numeral systems, including binary, decimal, octal, and hexadecimal. It includes examples for each type of conversion, demonstrating the calculations involved. The document also outlines the rules for grouping bits during conversions for both integer and fractional parts.

Uploaded by

Munim Shakib
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

CSE223

Topic: Number System Conversions

Conversion of Binary Number to Decimal Number


Example: 11012 =?10
11012 = 1x23 + 1x22 + 0x21 + 1x20
= 1x8 + 1x4+ 0x2 + 1x1
= 1310

Example: 0.11012 =?10


0.11012 = 1x2-1 + 1x2-2 + 0x2-3 + 1x2-4
= .5 + .25 + 0 + 0.0625
= 0.812510

Example: 1101.11012 =?10


1101.11012 = 1x23 + 1x22 + 0x21 + 1x20 + 1x2-1 + 1x2-2 + 0x2-3 + 1x2-4
=
= 13.812510

Conversion of Octal Number to Decimal Number


Example: 106.6458 = 1x82 + 0 x81 + 6 x80 + 6x8-1 + 4x8-2 +5x8-3
= 448.822256 10

Conversion of Hexadecimal Number to Decimal Number


Example: 9AF.8416 =?10
9AF.816 = 9x162 + Ax161 + Fx160 + 8x16-1 + 4X16-2
= 9x162 + 10x161 + 15x160 + 8x16-1 + 4X16-2
=
= 2479.51562510

Conversion of Decimal Number to Binary Number

Conversion of Decimal Number to Octal Number


Conversion of Decimal Number to Hexadecimal Number
Conversion of Binary Number to Octal Number
1
Binary to Octal: (8 = 23) 1
1 1
Rules- 3 bit Group for each digit 10 2
- For Integer number: Right to left 3 bit group 1 1
- For Fractional number: left to Right 3 bit group 11 3
1 1
Example: 100 4
3
110101.010112= ?8 8=2 1 1
101 5
110101.010112= 110 101 . 010 110
1 1
6 5 . 2 6 110 6

110101.010112 = 65.268

Conversion of Binary Number to Hexadecimal Number


Binary to Hexadecimal: (16=24)
Rules- 4 bit Group for each digit
- For Integer number: Right to left 4 bit group
- For Fractional number: left to Right 4 bit group

Example:
1010110.0101112 =?16
1010110.0101112 = 0101 0110 . 0101 1100 16=24
5 6 . 5 12(C)
1010110.0101112 = 56.5C16

Conversion of Octal Number to Binary Number


Octal to Binary: (8 = 23)
Rules- 3 bit Group for each digit
- For Integer number: Right to left (3 bit group conversion)
- For Fractional number: Right to left (3 bit group conversion)

Example: 527.3728 =? 16
5 2 7 . 3 7 2
101 010 111 . 011 111 010
527.3758 = 101010111.0111110102
Conversion of Hexadecimal Number to Binary Number
Hexadecimal to Binary: (16=24)
Rules- 4 bit Group for each digit
- For Integer number: Right to left 4 bit group
- For Fractional number: Right to left 4 bit group

Example: A07.E216 =?2


A 0 7 . E 2
1010 0000 0111 . 1110 0010

A07.E216 = 101000000111. 111000102

Conversion of Octal Number to Hexadecimal Number


Step-1: First convert Octal to Binary number
Step-2: Convert the Binary into Hexadecimal number

Example: 527.3758 =? 16
Octal to Binary: (8 = 23)
Rules- 3 bit Group for each digit
- For Integer number: Right to left 3 bit group
- For Fractional number: Right to left 3 bit group

5 2 7 . 3 7 5
101 010 111 . 011 111 101
527.3758 = 101010111.0111111012
Binary to Hexadecimal: (16=24)
Rules- 4 bit Group for each digit
- For Integer number: Right to left 4 bit group
- For Fractional number: left to Right 4 bit group

101010111.01111110 1 2
0001 0101 0111 . 0111 1110 1000
1 5 7 . 7 14(E) 8
527.3758 = 157.7E816

Conversion of Hexadecimal Number to Octal Number


Step-1: First convert Hexadecimal to Binary number
Step-2: Convert the Binary into Octal number

Example: A07.E216 =?8


Hexadecimal to Binary: (16=24)
Rules- 4 bit Group for each digit
- For Integer number: Right to left 4 bit group
- For Fractional number: Right to left 4 bit group

A 0 7 . E 2
1010 0000 0111 . 1110 0010
A07.E216 = 101000000111. 111000102

Binary to Octal: (8 = 23)


Rules- 3 bit Group for each digit
- For Integer number: Right to left 3 bit group
- For Fractional number: left to Right 3 bit group

101000000111. 111000102
101 000 000 111 . 111 000 100
5 0 0 7 . 7 0 4
A07.E216 = 5007.7048

You might also like