0% found this document useful (0 votes)
41 views13 pages

Comp Number System

This document discusses different number systems including decimal, binary, octal, and hexadecimal. It provides procedures for converting decimal numbers to binary, octal, and hexadecimal. Decimal to binary conversion involves repeatedly dividing the decimal number by 2 and writing down the remainders in reverse order. Decimal to octal and hexadecimal conversion follows the same process but divides by 8 and 16 respectively, using only digits 0-7 for octal and 0-9 plus A-F for hexadecimal remainders. Examples of conversions to each number system are provided.

Uploaded by

Glynish Macapia
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views13 pages

Comp Number System

This document discusses different number systems including decimal, binary, octal, and hexadecimal. It provides procedures for converting decimal numbers to binary, octal, and hexadecimal. Decimal to binary conversion involves repeatedly dividing the decimal number by 2 and writing down the remainders in reverse order. Decimal to octal and hexadecimal conversion follows the same process but divides by 8 and 16 respectively, using only digits 0-7 for octal and 0-9 plus A-F for hexadecimal remainders. Examples of conversions to each number system are provided.

Uploaded by

Glynish Macapia
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

m 

Glynish Labuguen Macapia

Types of number systems


Mecimal number represented with the base

10; with digits taking values from 0 to 9


Binary number uses the base 2; uses only
two value 0 and 1; the number system
recognized by the computer
Octal number uses the base 8; values range
from 0 10 7
Hexadecimal number uses the base 16;
values range from 0 to 9 and A to F.

Mecimal to binary conversion


(whole numbers)
1. Mivide the number by 2.
2. Take note of the remainder (either 0 or 1)
3. Continue doing step 1 and 2 until the
quotient becomes zero (0).
4. Write the remainders in reverse order in
which they are obtained.
a. 13910 = ___________2
b. 6810 = ____________2
c. 102810 = __________2

rocedure: 13910 = 100010112


139/2 = 69 remainder 1
69/2 = 34 remainder 1
34/2 = 17 remainder 0
17/2 = 8 remainder 1
8/2 = 4 remainder 0
4/2 = 2 remainder 0
2/2 = 1 remainder 0
1/2 = 0 remainder 1

Write the digits starting


from the bottom going up





68/2 = 34 r. 0
34/2 = 17 r. 0
17/2 = 8 r. 1
8/2 = 4 r. 0
4/2 = 2 r. 0
2/2 = 1 r. 0
1/2 = 0 r. 1







1028/2 = 514 r. 0
514/2 = 257 r. 0
257/2 = 128 r. 1
128/2 = 64 r. 0
64/2 = 32 r. 0
32/2 = 16 r. 0
16/2 = 8 r. 0
8/2 = 4 r. 0

4/2 = 2 r. 0
2/2 = 1 r. 0
1/2 = 0 r. 1

Mecimal to Octal number


Follow the same procedure in converting to

binary but divide the number by 8


The remainder should only be between 0 and
7.
17710 = ______________ 8
60910 = ______________ 8
25610 = ______________ 8

 
177/8 = 22 r. 1
22/8 = 2 r. 6
2/8 = 0 r. 2

Write the digits starting


from the bottom going up

 
609/8 = 76 r. 1
76/8 = 9 r. 4
9/8 = 1 r. 1
1/8 = 0 r. 1

Write the digits starting


from the bottom going up

  
609/8 = 76 r. 1
76/8 = 9 r. 4
9/8 = 1 r. 1
1/8 = 0 r. 1

Write the digits starting


from the bottom going up

amples:
1. 167810 = ______8
2. 5010 = ______8
3. 12810 = ______8
4. 2910 = ______8
5. 65010 = ______8

Mecimal to He adecimal number


Follow the same procedure by dividing it with

16
Remainders from 10 to 15 will be converted
from A to F, respectively
156710 = 61F16

amples:
1. 167810 = ______16
2. 5010 = ______16
3. 12810 = ______16
4. 2910 = ______16
5. 65010 = ______16

You might also like