Common Number Systems, Slides of Computer science

1F0C. 16. = 17414. 8. Page 53. Exercise – Convert ... Don't use a calculator! Decimal. Binary. Octal. Hexa- decimal. 33. 1110101. 703. 1AF.

Typology: Slides

2022/2023

Uploaded on 03/01/2023

presman
presman 🇺🇸

4.3

(24)

268 documents

1 / 65

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Unit1
Number Systems
College of Computer and Information Sciences
Department of Computer Science
CSC 220: Computer Organization
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41

Partial preview of the text

Download Common Number Systems and more Slides Computer science in PDF only on Docsity!

Unit

Number Systems

College of Computer and Information Sciences Department of Computer Science CSC 220: Computer Organization

Quantities/Counting (1 of 3)

Decimal Binary Octal

Hexa- decimal 0 0 0 0 1 1 1 1 2 10 2 2 3 11 3 3 4 100 4 4 5 101 5 5 6 110 6 6 7 111 7 7

Quantities/Counting (2 of 3)

Decimal Binary Octal

Hexa- decimal 8 1000 10 8 9 1001 11 9 10 1010 12 A 11 1011 13 B 12 1100 14 C 13 1101 15 D 14 1110 16 E 15 1111 17 F

Conversion Among Bases

  • The possibilities:

Hexadecimal

Decimal Octal

Binary

Decimal to Decimal (just for fun)

Hexadecimal

Decimal Octal

Binary

12510 => 5 x 10 0 = 5 2 x 10 1 = 20 1 x 10 2 = 100 125

Base

Weight

Binary to Decimal

  • Technique
    • Multiply each bit by 2n^ , where n is the “weight”

of the bit

  • The weight is the position of the bit, starting

from 0 on the right

  • Add the results

Example

  • 1010112 => 1 x 2 0 =
    • 1 x 2 1 =
    • 0 x 2 2 =
    • 1 x 2 3 =
    • 0 x 2 4 =
    • 1 x 2 5 =
      • 43

Octal to Decimal

Hexadecimal

Decimal Octal

Binary

Octal to Decimal

  • Technique
    • Multiply each bit by 8n^ , where n is the “weight”

of the bit

  • The weight is the position of the bit, starting

from 0 on the right

  • Add the results

Hexadecimal to Decimal

Hexadecimal

Decimal Octal

Binary

Hexadecimal to Decimal

  • Technique
    • Multiply each bit by 16n^ , where n is the

“weight” of the bit

  • The weight is the position of the bit, starting

from 0 on the right

  • Add the results