SlideShare a Scribd company logo
TOPICS
• Octal
• Hexadecimal
• Number conversion
Other Number Systems
• Octal and hex are a convenient way to
represent binary numbers, as used by
computers.
• Computer mechanics often need to write out
binary quantities, but in practice writing out a
binary number such as
Other Number Systems
• 1001001101010001
is tedious, and prone to errors.
• Therefore, binary quantities are written in a
base-8 ("octal") or, much more commonly, a
base-16 ("hexadecimal" or "hex") number
format.
Octal Number Systems
• Base = 8 or ‘o’ or ‘Oct’
• 8 symbols: { 0, 1, 2, 3, 4, 5, 6, 7}
• Example 123, 567, 7654 etc
987 This is incorrect why?
• How to represent a Decimal Number using a
Octal Number System ?
Octal Number Systems
• Repeated Division by 8
• Example
21310 = ( )8 ?
Divide-by -8

Quotient

Remainder

Octal digit

213 / 8
26 / 8
3/8

26
3
0

5
2
3

Lower digit = 5
Second digit =2
Third digit =3

Answer = 3258
Octal Number Systems
• How to convert 3258 back to Decimal ?
• Use this table and multiply the digits with the position
values
Digit
8

Digit
7

Digit
6

Digit
5

Digit
4

Digit
3

Digit
2

Digit
1

87

86

85

84

83

82

81

80

……

……

32768

4096

512

64

8

1
Octal Number Systems
• How to convert 3258 back to Decimal ?
• Consider the above number
Digit 1
3 2 5 (8)
Digit 3

Digit 2

3 x 82 + 2 x 81 + 5 x 80 = 3 x 64 + 2 x 8 + 5 x 1
= 192 +16 + 5
= 213
Octal Number Systems
• Example Convert 6118
• Consider the above number
Digit 1
6 1 1 (8)
Digit 3

Digit 2

6 x 82 + 1 x 81 + 1 x 80 = 6 x 64 + 1 x 8 + 1 x 1
= 384 + 8 + 1
= 393
Octal Number Systems
• Convert 393 to octal
Divide-by -8

Quotient

Remainder

Octal digit

393 / 8
49 / 8
6/8

49
6
0

1
1
6

Lower digit = 1
Second digit =1
Third digit =6

Answer = 6118
Hexadecimal Number
Systems
• Base = 16 or ‘H’ or ‘Hex’
16 symbols: { 0, 1, 2, 3, 4, 5, 6, 7,8,9 }
{ 10=A, 11=B, 12=C, 13=D, 14=E, 15= F}
Hexadecimal Number
Systems
•

{0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F} It uses 6
Letters !
• Example AB12, 876F, FFFF etc
• How to represent a Decimal Number using a
Hexadecimal Number System ?
Hex Number Systems
• Repeated Division by 16
• Example
21310 = ( )16 ?
Divide-by -16

Quotient

Remainder

Hex digit

213 / 16
13 / 16

13
0

5
13

Lower digit = 5
Second digit =D

Answer = D516
Hex Number Systems
• How to convert D516 back to Decimal ?
• Use this table and multiply the digits with the position
values
Digit
8

Digit
7

Digit
6

Digit
5

Digit
4

Digit
3

Digit
2

Digit
1

167

166

165

164

163

162

161

160

……

……

…..

……

4096

256

16

1
Hex Number Systems
• How to convert D516 back to Decimal ?
• Consider the above number
Digit 1
D 5 (16)
Digit 2

D x 161 + 5 x 160 = 13 x 16 + 5 x 1
= 208 + 5
= 213
Binary Number Systems
• A single bit can represent two states:0 1
• Therefore, if you take two bits, you can use them
to represent four unique states:
00, 01, 10, & 11
• And, if you have three bits, then you can use them
to represent eight unique states:
000, 001, 010, 011, 100, 101, 110, & 111
Binary Number Systems
•And, if you have three bits, then you can use them
to represent eight unique states:
These have a perfect correspondence to Octal
000 = Octal 0
100 = Octal 4
001 = Octal 1
101 = Octal 5
010 = Octal 2
110 = Octal 6
011 = Octal 3
111 = Octal 7
Binary Number Systems
•With every bit you add, you double the number of
states you can represent. Therefore, the expression
for the number of states with n bits is 2n. Most
computers operate on information in groups of 8
bits,
Binary Number Systems
• A unit of four bits, or half an octet, is often called
a nibble (or nybble). It can encode 16 different
values, such as the numbers 0 to 15. Any arbitrary
sequence of bits could be used in principle,
Binary Number Systems
, but in practice the most common scheme is:
0000 = decimal 00 hex 0
1000 = decimal 08 hex 8
0001 = decimal 01 hex 1
1001 = decimal 09 hex 9
0010 = decimal 02 hex 2
1010 = decimal 10 hex A
0011 = decimal 03 hex 3
1011 = decimal 11 hex B
0100 = decimal 04 hex 4
1100 = decimal 12 hex C
0101 = decimal 05 hex 5
1101 = decimal 13 hex D
0110 = decimal 06 hex 6
1110 = decimal 14 hex E
0111 = decimal 07 hex 7
1111 = decimal 15 hex F

These have perfect correspondence to Hex
Convert Binary to Hex
•

•

Group into 4's starting at least significant
symbol (if the number of bits is not evenly
divisible by 4, then add 0's at the most
significant end)
write 1 hex digit for each group
Convert Binary to Hex
Example: Convert 1001 1110 0111 0000 to Hex
After grouping follow the procedure as discussed in
the previous section use the symbols of Hex number
system like 13=E

1001 1110
9
E

0111 0000
7
0
Convert Binary to Hex
Example: Convert 100 1010 011 0000 to Hex
10

0101

0011

0000

This group has only two bits, to make it a group of 4
bits add zeros in MSB position

0010
2

0101
5

0011 0000
3
0
Convert Hex to Binary
•
•

For each of the Hex digit write its binary
equivalent (use 4 bits to represent)
Example
Convert 25A0 to binary
0010 0101 1010 0000
Convert Binary to Octal
•

•

Group into 3's starting at least significant
symbol (if the number of bits is not evenly
divisible by 3, then add 0's at the most
significant end)
write 1 octal digit for each group
Convert Binary to Octal
Example: Convert 1001 1110 0111 0000 to Oct
After grouping follow the procedure as discussed in
the previous section use the symbols of Oct number
system like
add two zeros here

001 001 111 001 110 000
1
1
7
1
6 0
Answer = 1171608
Convert Octal to Binary
•
•

For each of the Octal digit write its binary
equivalent
Example
Convert 2570 to binary
010 101

111

000
TOPICS
• Information Representation
• Characters and Images
Information Representation
• All information must be rendered into binary in
order to be stored on a computer.
• Besides numbers, almost all applications must
store characters and string information.
• Images are pervasive in today’s internet world
and must be rendered in binary to be handled by
internet browsers.
Character Representation
• ASCII – PC workstations
• EBCDIC – IBM Mainframes
• Unicode – International Character sets
ASCII
• ASCII
• Expanded name
American Standard Code for Information Interchange
• Area covered
7-bit coded character set for information interchange
• Characteristics/description
Specifies coding of space and a set of 94 characters
(letters, digits and punctuation or mathematical symbols)
suitable for the interchange of basic English language
documents. Forms the basis for most computer code sets
ASCII
EBCDIC
• EBCDIC
• Expanded name
Extended Binary Coded Decimal Interchange Code
• Proprietary specification developed by IBM
• Characteristics/description
A set of national character sets for interchange of
documents between IBM mainframes. Most
EBCDIC character sets do not contain all of the
characters defined in the ASCII code
EBCDIC
• EBCDIC

• Usage
Not much used outside of IBM and similar
mainframe environments. When transmitting
EBCDIC files between systems care needs to be
taken to ensure that the systems are set up for the
relevant national code set.
EBCDIC
UNICODE
From MSDN: Unicode can represent all of the
world's characters in modern computer use,
including technical symbols and special
characters used in publishing. Because each
Unicode code value is 16 bits wide, it is possible
to have separate values for up to 65,536
characters. Unicode-enabled functions are often
referred to as "wide-character" functions.
UNICODE
Note that the implementation of Unicode in 16-bit
values is referred to as UTF-16. For compatibility
with 8- and 7-bit environments, UTF-8 and UTF7 are two transformations of 16-bit Unicode
values. For more information, see The Unicode
Standard, Version 2.0.
Questions ?

More Related Content

PPTX
2.1 data represent on cpu
Wan Afirah
 
PPTX
Number system computer fundamental
Aman anand kumar
 
PPTX
Okkkkk
Bilal Maqbool ツ
 
PPSX
Basic of number system
Akhilesh Maithani
 
PPT
Cmp104 lec 2 number system
kapil078
 
PDF
Digital and Logic Design Chapter 1 binary_systems
Imran Waris
 
PPTX
Number systems
Mustafa Salah
 
2.1 data represent on cpu
Wan Afirah
 
Number system computer fundamental
Aman anand kumar
 
Basic of number system
Akhilesh Maithani
 
Cmp104 lec 2 number system
kapil078
 
Digital and Logic Design Chapter 1 binary_systems
Imran Waris
 
Number systems
Mustafa Salah
 

What's hot (20)

PPTX
Introducing to number system
tcc_joemarie
 
PPT
Binary number systems
KULDEEP MATHUR
 
PDF
Number system
Aditya Sharat
 
PPTX
Number Systems
Jubayer Alam Shoikat
 
PPT
Number system
Sajib
 
PDF
Number system utm notes
Kurenai Ryu
 
PPTX
Logic Circuits Design - "Chapter 1: Digital Systems and Information"
Ra'Fat Al-Msie'deen
 
PPT
Number Systems
student
 
PPT
W 9 numbering system
Institute of Management Studies UOP
 
PPTX
Number system
Mantra VLSI
 
PPTX
Number system
Darpan Chelani
 
PPTX
Representation Of Numbers and Characters
Shaikh Kamrul Islam (Konok kamrul)
 
PPT
01.number systems
Sripati Mahapatra
 
PPTX
Number System
Ramesh Ragala
 
PPTX
ALL ABOUT NUMBER SYSTEMS
vinaygoel18
 
PPTX
Computer number systems
Revi Shahini
 
PPTX
Computer Number system
Anil Kumar Prajapati
 
PPTX
Number System
Zahid Rajeel
 
PPT
digital logic design number system
Nallapati Anindra
 
PPTX
Number system....
mshoaib15
 
Introducing to number system
tcc_joemarie
 
Binary number systems
KULDEEP MATHUR
 
Number system
Aditya Sharat
 
Number Systems
Jubayer Alam Shoikat
 
Number system
Sajib
 
Number system utm notes
Kurenai Ryu
 
Logic Circuits Design - "Chapter 1: Digital Systems and Information"
Ra'Fat Al-Msie'deen
 
Number Systems
student
 
Number system
Mantra VLSI
 
Number system
Darpan Chelani
 
Representation Of Numbers and Characters
Shaikh Kamrul Islam (Konok kamrul)
 
01.number systems
Sripati Mahapatra
 
Number System
Ramesh Ragala
 
ALL ABOUT NUMBER SYSTEMS
vinaygoel18
 
Computer number systems
Revi Shahini
 
Computer Number system
Anil Kumar Prajapati
 
Number System
Zahid Rajeel
 
digital logic design number system
Nallapati Anindra
 
Number system....
mshoaib15
 
Ad

Similar to Numbersystemcont (20)

PDF
Lecture-2(2): Number System & Conversion
Mubashir Ali
 
PPTX
Intro to IT Skills Lec 5 - English Department.pptx
must322322
 
PPTX
clas 12th cbse board numbernumber system.pptx
nishisultaniasy
 
PPTX
Week 4-Number Systems.pptx
HamnaKhalid25
 
PPTX
Number-Systems presentation of the mathematics
shivas379526
 
PPT
2. Computer_Organization_unit_ 1_win.ppt
hfaymsgya9
 
PPT
W 9 numbering system
Institute of Management Studies UOP
 
PPT
Cit 1101 lec 02
sohag sikder
 
PPT
010cb00356974412fr8b1af34b482e15d502.ppt
nishisultaniasy
 
PPTX
module 3,Boolean algebra and logic circuits .pptx
keemjupiter
 
PDF
Numbersystem 130621192712-phpapp02
muhammadsarab
 
PPTX
Number system
Palash Sachan
 
PPTX
BEEE - Part B - Unit 3 - Digital Electronics PPT.pptx
nagarajesh87
 
PPTX
Types of number system , NUMBER SYSTEMNumber systems are the technique to rep...
rohan658815
 
PPTX
ARCsxfhcjkvmnfxcgbfgcxhvbxdfzxcgbfxgcvbnx3.pptx
FiraolGadissa
 
PPTX
Shashank Srivastavhshsusubeueheuehm.pptx
Nandan895079
 
PDF
Introduction to Computing - Basic Theories Of Information
ssuserb9860f
 
PPTX
Number System
MusPaintal
 
PDF
Number systems
pyingkodi maran
 
PDF
Digital Electronics Notes.pdf
4NM21IS132SAISHARATH
 
Lecture-2(2): Number System & Conversion
Mubashir Ali
 
Intro to IT Skills Lec 5 - English Department.pptx
must322322
 
clas 12th cbse board numbernumber system.pptx
nishisultaniasy
 
Week 4-Number Systems.pptx
HamnaKhalid25
 
Number-Systems presentation of the mathematics
shivas379526
 
2. Computer_Organization_unit_ 1_win.ppt
hfaymsgya9
 
Cit 1101 lec 02
sohag sikder
 
010cb00356974412fr8b1af34b482e15d502.ppt
nishisultaniasy
 
module 3,Boolean algebra and logic circuits .pptx
keemjupiter
 
Numbersystem 130621192712-phpapp02
muhammadsarab
 
Number system
Palash Sachan
 
BEEE - Part B - Unit 3 - Digital Electronics PPT.pptx
nagarajesh87
 
Types of number system , NUMBER SYSTEMNumber systems are the technique to rep...
rohan658815
 
ARCsxfhcjkvmnfxcgbfgcxhvbxdfzxcgbfxgcvbnx3.pptx
FiraolGadissa
 
Shashank Srivastavhshsusubeueheuehm.pptx
Nandan895079
 
Introduction to Computing - Basic Theories Of Information
ssuserb9860f
 
Number System
MusPaintal
 
Number systems
pyingkodi maran
 
Digital Electronics Notes.pdf
4NM21IS132SAISHARATH
 
Ad

More from Sajib (20)

PPT
Social science lecture 1(part-2) ppt summer 2011
Sajib
 
PPT
Schaefer6e ppt ch03
Sajib
 
PPT
Copy of schaefer6e ppt ch01
Sajib
 
PPT
Chapter 07
Sajib
 
PPT
Ch 3 org culture and the environment (1)
Sajib
 
PPT
Ch 1 intro to management and org (1)
Sajib
 
PPT
Chapter -13_-_marketing_strategy
Sajib
 
PPT
Chapter -10_and_11_-_human_resource_management
Sajib
 
PPT
Chapter -8_-_organizing_the_business1.0
Sajib
 
PPT
Chapter -7-_fundamentals_of_management_part-ii
Sajib
 
PPT
Chapter -7-_fundamentals_of_management_part-i
Sajib
 
PPTX
Chapt 18, part 2
Sajib
 
PPTX
Chapt 18, intro to bus part 1
Sajib
 
PPT
Intro business chapter1_part2
Sajib
 
PPT
Intro business _chapter1part1
Sajib
 
PPT
Input output painted
Sajib
 
PPT
Compsystem2
Sajib
 
PPT
Compgenerations pented
Sajib
 
PPT
Compgenerations pented
Sajib
 
PPT
Algorithms and flowcharts
Sajib
 
Social science lecture 1(part-2) ppt summer 2011
Sajib
 
Schaefer6e ppt ch03
Sajib
 
Copy of schaefer6e ppt ch01
Sajib
 
Chapter 07
Sajib
 
Ch 3 org culture and the environment (1)
Sajib
 
Ch 1 intro to management and org (1)
Sajib
 
Chapter -13_-_marketing_strategy
Sajib
 
Chapter -10_and_11_-_human_resource_management
Sajib
 
Chapter -8_-_organizing_the_business1.0
Sajib
 
Chapter -7-_fundamentals_of_management_part-ii
Sajib
 
Chapter -7-_fundamentals_of_management_part-i
Sajib
 
Chapt 18, part 2
Sajib
 
Chapt 18, intro to bus part 1
Sajib
 
Intro business chapter1_part2
Sajib
 
Intro business _chapter1part1
Sajib
 
Input output painted
Sajib
 
Compsystem2
Sajib
 
Compgenerations pented
Sajib
 
Compgenerations pented
Sajib
 
Algorithms and flowcharts
Sajib
 

Recently uploaded (20)

PPTX
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
PPTX
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
PDF
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
PPTX
Basics and rules of probability with real-life uses
ravatkaran694
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
PPTX
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
PPTX
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Celine George
 
PPTX
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
PDF
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
PPTX
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
PPTX
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
DOCX
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
PPTX
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
DOCX
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
Basics and rules of probability with real-life uses
ravatkaran694
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Celine George
 
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 

Numbersystemcont

  • 2. Other Number Systems • Octal and hex are a convenient way to represent binary numbers, as used by computers. • Computer mechanics often need to write out binary quantities, but in practice writing out a binary number such as
  • 3. Other Number Systems • 1001001101010001 is tedious, and prone to errors. • Therefore, binary quantities are written in a base-8 ("octal") or, much more commonly, a base-16 ("hexadecimal" or "hex") number format.
  • 4. Octal Number Systems • Base = 8 or ‘o’ or ‘Oct’ • 8 symbols: { 0, 1, 2, 3, 4, 5, 6, 7} • Example 123, 567, 7654 etc 987 This is incorrect why? • How to represent a Decimal Number using a Octal Number System ?
  • 5. Octal Number Systems • Repeated Division by 8 • Example 21310 = ( )8 ? Divide-by -8 Quotient Remainder Octal digit 213 / 8 26 / 8 3/8 26 3 0 5 2 3 Lower digit = 5 Second digit =2 Third digit =3 Answer = 3258
  • 6. Octal Number Systems • How to convert 3258 back to Decimal ? • Use this table and multiply the digits with the position values Digit 8 Digit 7 Digit 6 Digit 5 Digit 4 Digit 3 Digit 2 Digit 1 87 86 85 84 83 82 81 80 …… …… 32768 4096 512 64 8 1
  • 7. Octal Number Systems • How to convert 3258 back to Decimal ? • Consider the above number Digit 1 3 2 5 (8) Digit 3 Digit 2 3 x 82 + 2 x 81 + 5 x 80 = 3 x 64 + 2 x 8 + 5 x 1 = 192 +16 + 5 = 213
  • 8. Octal Number Systems • Example Convert 6118 • Consider the above number Digit 1 6 1 1 (8) Digit 3 Digit 2 6 x 82 + 1 x 81 + 1 x 80 = 6 x 64 + 1 x 8 + 1 x 1 = 384 + 8 + 1 = 393
  • 9. Octal Number Systems • Convert 393 to octal Divide-by -8 Quotient Remainder Octal digit 393 / 8 49 / 8 6/8 49 6 0 1 1 6 Lower digit = 1 Second digit =1 Third digit =6 Answer = 6118
  • 10. Hexadecimal Number Systems • Base = 16 or ‘H’ or ‘Hex’ 16 symbols: { 0, 1, 2, 3, 4, 5, 6, 7,8,9 } { 10=A, 11=B, 12=C, 13=D, 14=E, 15= F}
  • 11. Hexadecimal Number Systems • {0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F} It uses 6 Letters ! • Example AB12, 876F, FFFF etc • How to represent a Decimal Number using a Hexadecimal Number System ?
  • 12. Hex Number Systems • Repeated Division by 16 • Example 21310 = ( )16 ? Divide-by -16 Quotient Remainder Hex digit 213 / 16 13 / 16 13 0 5 13 Lower digit = 5 Second digit =D Answer = D516
  • 13. Hex Number Systems • How to convert D516 back to Decimal ? • Use this table and multiply the digits with the position values Digit 8 Digit 7 Digit 6 Digit 5 Digit 4 Digit 3 Digit 2 Digit 1 167 166 165 164 163 162 161 160 …… …… ….. …… 4096 256 16 1
  • 14. Hex Number Systems • How to convert D516 back to Decimal ? • Consider the above number Digit 1 D 5 (16) Digit 2 D x 161 + 5 x 160 = 13 x 16 + 5 x 1 = 208 + 5 = 213
  • 15. Binary Number Systems • A single bit can represent two states:0 1 • Therefore, if you take two bits, you can use them to represent four unique states: 00, 01, 10, & 11 • And, if you have three bits, then you can use them to represent eight unique states: 000, 001, 010, 011, 100, 101, 110, & 111
  • 16. Binary Number Systems •And, if you have three bits, then you can use them to represent eight unique states: These have a perfect correspondence to Octal 000 = Octal 0 100 = Octal 4 001 = Octal 1 101 = Octal 5 010 = Octal 2 110 = Octal 6 011 = Octal 3 111 = Octal 7
  • 17. Binary Number Systems •With every bit you add, you double the number of states you can represent. Therefore, the expression for the number of states with n bits is 2n. Most computers operate on information in groups of 8 bits,
  • 18. Binary Number Systems • A unit of four bits, or half an octet, is often called a nibble (or nybble). It can encode 16 different values, such as the numbers 0 to 15. Any arbitrary sequence of bits could be used in principle,
  • 19. Binary Number Systems , but in practice the most common scheme is: 0000 = decimal 00 hex 0 1000 = decimal 08 hex 8 0001 = decimal 01 hex 1 1001 = decimal 09 hex 9 0010 = decimal 02 hex 2 1010 = decimal 10 hex A 0011 = decimal 03 hex 3 1011 = decimal 11 hex B 0100 = decimal 04 hex 4 1100 = decimal 12 hex C 0101 = decimal 05 hex 5 1101 = decimal 13 hex D 0110 = decimal 06 hex 6 1110 = decimal 14 hex E 0111 = decimal 07 hex 7 1111 = decimal 15 hex F These have perfect correspondence to Hex
  • 20. Convert Binary to Hex • • Group into 4's starting at least significant symbol (if the number of bits is not evenly divisible by 4, then add 0's at the most significant end) write 1 hex digit for each group
  • 21. Convert Binary to Hex Example: Convert 1001 1110 0111 0000 to Hex After grouping follow the procedure as discussed in the previous section use the symbols of Hex number system like 13=E 1001 1110 9 E 0111 0000 7 0
  • 22. Convert Binary to Hex Example: Convert 100 1010 011 0000 to Hex 10 0101 0011 0000 This group has only two bits, to make it a group of 4 bits add zeros in MSB position 0010 2 0101 5 0011 0000 3 0
  • 23. Convert Hex to Binary • • For each of the Hex digit write its binary equivalent (use 4 bits to represent) Example Convert 25A0 to binary 0010 0101 1010 0000
  • 24. Convert Binary to Octal • • Group into 3's starting at least significant symbol (if the number of bits is not evenly divisible by 3, then add 0's at the most significant end) write 1 octal digit for each group
  • 25. Convert Binary to Octal Example: Convert 1001 1110 0111 0000 to Oct After grouping follow the procedure as discussed in the previous section use the symbols of Oct number system like add two zeros here 001 001 111 001 110 000 1 1 7 1 6 0 Answer = 1171608
  • 26. Convert Octal to Binary • • For each of the Octal digit write its binary equivalent Example Convert 2570 to binary 010 101 111 000
  • 28. Information Representation • All information must be rendered into binary in order to be stored on a computer. • Besides numbers, almost all applications must store characters and string information. • Images are pervasive in today’s internet world and must be rendered in binary to be handled by internet browsers.
  • 29. Character Representation • ASCII – PC workstations • EBCDIC – IBM Mainframes • Unicode – International Character sets
  • 30. ASCII • ASCII • Expanded name American Standard Code for Information Interchange • Area covered 7-bit coded character set for information interchange • Characteristics/description Specifies coding of space and a set of 94 characters (letters, digits and punctuation or mathematical symbols) suitable for the interchange of basic English language documents. Forms the basis for most computer code sets
  • 31. ASCII
  • 32. EBCDIC • EBCDIC • Expanded name Extended Binary Coded Decimal Interchange Code • Proprietary specification developed by IBM • Characteristics/description A set of national character sets for interchange of documents between IBM mainframes. Most EBCDIC character sets do not contain all of the characters defined in the ASCII code
  • 33. EBCDIC • EBCDIC • Usage Not much used outside of IBM and similar mainframe environments. When transmitting EBCDIC files between systems care needs to be taken to ensure that the systems are set up for the relevant national code set.
  • 35. UNICODE From MSDN: Unicode can represent all of the world's characters in modern computer use, including technical symbols and special characters used in publishing. Because each Unicode code value is 16 bits wide, it is possible to have separate values for up to 65,536 characters. Unicode-enabled functions are often referred to as "wide-character" functions.
  • 36. UNICODE Note that the implementation of Unicode in 16-bit values is referred to as UTF-16. For compatibility with 8- and 7-bit environments, UTF-8 and UTF7 are two transformations of 16-bit Unicode values. For more information, see The Unicode Standard, Version 2.0.

Editor's Notes