CPS120 Introduction to Computer Scence - PowerPoint PPT Presentation

1 / 5
About This Presentation
Title:

CPS120 Introduction to Computer Scence

Description:

... 75/8 = 9 remainder Step 2: Successively divide the quotients by (r) until a zero quotient is obtained 9/8 = 1 remainder 1 1/8 = 0 remainder 1 Step 3: ... – PowerPoint PPT presentation

Number of Views:23
Avg rating:3.0/5.0
Slides: 6
Provided by: wcc66
Learn more at: http://space.wccnet.edu
Category:

less

Transcript and Presenter's Notes

Title: CPS120 Introduction to Computer Scence


1
CPS120 Introduction to Computer Scence
  • Computer Math Converting to Other Bases

2
Converting Binary to Octal
  • Groups of Three (from right)
  • Convert each group
  • 10101011 10 101 011
  • 2 5 3
  • 10101011 is 253 in base 8

17
3
Binary to Hex
  • Step 1 Form four-bit groups beginning from the
    rightmost bit of the binary number
  • If the last group (at the leftmost position) has
    less than four bits, add extra zeros to the left
    of the group to make it a four-bit group
  • 0110011110101010100111 becomes
  • 0001 1001 1110 1010 1010 0111
  • Step 2 Replace each four-bit group by its
    hexadecimal equivalent
  • 19EAA7(16

4
Converting Decimal to Other Bases
  • Step 1 Divide the number by the base you are
    converting to (r)
  • Step 2 Successively divide the quotients by (r)
    until a zero quotient is obtained
  • Step 3 The decimal equivalent is obtained by
    writing the remainders of the successive division
    in the opposite order in which they were obtained
  • Know as modulus arithmetic
  • Step 4 Verify the result by multiplying it out

5
Converting Decimal to Hexadecimal
222 13 0
16 3567 16 222 16 13 32
16 0
36 62 13 32 48
47 14 32
15
D E F
21
Write a Comment
User Comments (0)
About PowerShow.com