SlideShare una empresa de Scribd logo
1 de 11
Descargar para leer sin conexión
Computers – Numbering Systems
The Binary System
This is a numbering system to the base of two, meaning that it only has two digits 0 and 1.
The binary system is the base numbering system used in computer and digital logic control
systems.
Binary numbers are written as a sequence of zero’s and one’s, where: 0101; 1000; 1001 are
examples of four-bit binary numbers.
Weighting
Each column in the binary number represents a denary number as shown below
and doubles with each column.
This is called the ‘weighting’ of the numbering system.
Each 1 or 0 multiplies a successive power of 2.
8 4 2 1
LSBMSB
23
22
21
20
Bin 1 1 0 1 = (1x8) + (1x4) + (0x2) + (1x1)= 13d
Computers – Numbering Systems
The Hexadecimal System
Numbers in the binary system tend to get very long, the hex system is more compact and
less prone to error.
Each column represents a successive power of sixteen (base 16).
Hex symbols 0 – 9 for decimal 0 – 9 and A to F for decimal 10 to 15.
256 16 1
162
161
160
Hex 2 3 4 = (2x256) + (3x16) + (4x1) = 564d
Decimal Binary Hex
101
(10)
100
(1)
24
(16)
23
(8)
22
(4)
21
(2)
20
(1)
161
(16)
160
(1)
0 7 0 0 1 1 1 0 7
1 0 0 1 0 1 0 0 A
1 2 0 1 1 0 0 0 C
1 5 0 1 1 1 1 0 F
2 7 1 1 0 1 1 1 8
Computers – Numbering Systems
The Hexadecimal System
To write a binary number in hexadecimal group the number into four-bit groups beginning
with the LSB and write the hex equivalent of each group.
Example
Decimal 245 = 11110101
Group into four bits, = 1111 0101
Hex = F 5
Decimal 245 = F5 (Hex)
The Octal System
A base-8 system from an early era, used during the development of the first computer
systems and is not commonly used these days.
Although it does not require the extra symbols (A-F “hex”) it is extremely awkward when
applied to byte-organised words of today’s computer systems.
BINARY CODED DECIMAL (BCD)
By converting (encoding) each decimal digit into a four-bit binary group we obtain a
system called Binary Coded Decimal (BCD).
This system is ideal for use when we wish to display a decimal digit from its binary
equivalent eg digital displays.
Each four-bit group is binary weighted and represents a single digit.
Computers – Numbering Systems
Example
Decimal 245 = 2 4 5
BCD = 0010 0100 0101
Computers – Numbering Systems
2. State the decimal equivalents represented by the binary numbers shown below,
a) 01100101, b) 10110011, c) 10111101.
Assessment
1. Write down the binary equivalents for denary numbers 0 to 12, 28, 32 and 64.
3. State the hexadecimal equivalents for the denary numbers shown below,
a) 8, b) 12, c) 18, d) 28.
4. Convert the binary numbers in question 2 to their hexadecimal equivalents.
5. Convert the binary numbers in question 2 to their BCD equivalents.
ASCII CODE
This is the American Standard Code for Information Interchange.
It is a method of coding alphabetic, numeric and punctuation characters into
groups of 7-bits.
Computers – Coding Systems
Char Hex Dec Char Hex Dec
A 41H 65 a 61H 97
B 42H 66 b 62H 98
C 43H 67 c 63H 99
0 30H 48  5CH 92
1 31H 49 ] 5DH 93
2 32H 50 < 3CH 60
GRAY CODE
The Gray code is used for mechanical shaft-angle encoders, the feature of this
code is that only one bit changes in going from one state to the next.
This method prevents errors, since there is no way of guaranteeing that all bits will
change simultaneously at the boundary between two encoded states.
Computers – Coding Systems
Position Gray Code Position Gray Code
0 0000 8 1100
1 0001 9 1101
2 0011 10 1111
3 0010 11 1110
4 0110 12 1010
5 0111 13 1011
6 0101 14 1001
7 0100 15 1000
D0
D1
D2
D3
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 position
LED’s
2’s COMPLEMENT
The “2’s complement” is the method most widely used for integer computation in
electronic systems.
To obtain a negative number (2’s complement) first complement each bit of the
positive number then add 1.
Computers – Arithmetic Operations
Check this by adding the original positive number to the 2’s complement
representation.
The result should be zero, since the 2’s complement changes the sign of the
original positive number.
Example
Decimal 5 = 0101
1’s complement = 1010
+1 (2’s complement) = 1011
Using the 2’s Complement
Subtract B from A, take the 2’s complement of B (create a negative of B) then add
this to A.
Computers – Arithmetic Operations
Example
5 - 2 = 5 + (-2)
2 = 0010
1’s complement = 110
+1 (2’s complement) = 1110
5 = 0101
Add = 0011 = 3
Computers – Data Systems
BITS to GIGABYTES
The bit is short for binary digit and has two values (0 or 1)
When four binary bits are grouped together they form a nybble,
‘0110’ and ‘1110’.
When two nibbles, (eight binary bits) are grouped together they form a
byte,‘10110101’ and ‘00110111’.
A word is the term used to represent the unit of data in a particular system.
In an eight bit system the word contains eight bits.
Personal computers today use 32 and 64 bit words while pic’s and micro-
controller’s and Z80cpu systems use four and eight bit words.
Computers – Data Systems
BITS to GIGABYTES – Common Units of Measure
Kilobyte (kB) – Describes the data storage capacity of small systems e.g. memory
capacity for micro-controllers and size of data files.
1kB = 1024 bytes (210
bytes).
Megabyte (MB) – Describes the data storage capacity of memory devices, image
files (bitmaps).
1MB = 1024 kB (220
bytes).
Gigabyte (GB) – Describes the data storage capacity of hard drives, CD/DVD data
storage devices. The gigabyte is the largest unit of capacity in use at present.
1GB = 1024 MB (230
bytes).

Más contenido relacionado

La actualidad más candente

Data representation
Data representationData representation
Data representationManish Kumar
 
Data Representation
Data RepresentationData Representation
Data RepresentationRick Jamil
 
Computer Systems Data Representation
Computer Systems   Data RepresentationComputer Systems   Data Representation
Computer Systems Data Representationiarthur
 
Data representation
Data representationData representation
Data representationrozanadiana
 
Understand data representation on CPU 1
Understand data representation on CPU 1Understand data representation on CPU 1
Understand data representation on CPU 1Brenda Debra
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representationekul
 
Computer architecture data representation
Computer architecture  data representationComputer architecture  data representation
Computer architecture data representationAnil Pokhrel
 
data representation
 data representation data representation
data representationHaroon_007
 
How computers represent data
How computers represent dataHow computers represent data
How computers represent dataShaon Ahmed
 
Number System & Data Representation
Number System & Data RepresentationNumber System & Data Representation
Number System & Data RepresentationPhillip Glenn Libay
 
2.1 data represent on cpu
2.1 data represent on cpu2.1 data represent on cpu
2.1 data represent on cpuWan Afirah
 
Computer data representation (integers, floating-point numbers, text, images,...
Computer data representation (integers, floating-point numbers, text, images,...Computer data representation (integers, floating-point numbers, text, images,...
Computer data representation (integers, floating-point numbers, text, images,...ArtemKovera
 

La actualidad más candente (20)

Data representation
Data representationData representation
Data representation
 
Data representation
Data representationData representation
Data representation
 
NUMBER SYSTEM
NUMBER SYSTEMNUMBER SYSTEM
NUMBER SYSTEM
 
Data Representation
Data RepresentationData Representation
Data Representation
 
Data representation
Data representationData representation
Data representation
 
Computer Systems Data Representation
Computer Systems   Data RepresentationComputer Systems   Data Representation
Computer Systems Data Representation
 
Data representation in computers
Data representation in computersData representation in computers
Data representation in computers
 
Data representation
Data representationData representation
Data representation
 
Data Representation
Data RepresentationData Representation
Data Representation
 
Understand data representation on CPU 1
Understand data representation on CPU 1Understand data representation on CPU 1
Understand data representation on CPU 1
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
 
Computer architecture data representation
Computer architecture  data representationComputer architecture  data representation
Computer architecture data representation
 
data representation
 data representation data representation
data representation
 
How computers represent data
How computers represent dataHow computers represent data
How computers represent data
 
Representation of Real Numbers
Representation of Real NumbersRepresentation of Real Numbers
Representation of Real Numbers
 
Chapter 1: Binary System
 Chapter 1: Binary System Chapter 1: Binary System
Chapter 1: Binary System
 
Number System & Data Representation
Number System & Data RepresentationNumber System & Data Representation
Number System & Data Representation
 
2.1 data represent on cpu
2.1 data represent on cpu2.1 data represent on cpu
2.1 data represent on cpu
 
Computer data representation (integers, floating-point numbers, text, images,...
Computer data representation (integers, floating-point numbers, text, images,...Computer data representation (integers, floating-point numbers, text, images,...
Computer data representation (integers, floating-point numbers, text, images,...
 
Basics of digital electronics
Basics of digital electronicsBasics of digital electronics
Basics of digital electronics
 

Destacado

Components logic gates
Components   logic gatesComponents   logic gates
Components logic gatessld1950
 
Elect principles -_capacitance
Elect principles -_capacitanceElect principles -_capacitance
Elect principles -_capacitancesdacey
 
Elect principles -_ac_circuits_year1
Elect principles -_ac_circuits_year1Elect principles -_ac_circuits_year1
Elect principles -_ac_circuits_year1sdacey
 
Elect principles -_ac_waveform_year1
Elect principles -_ac_waveform_year1Elect principles -_ac_waveform_year1
Elect principles -_ac_waveform_year1sdacey
 
Elect principles -_resistance
Elect principles -_resistanceElect principles -_resistance
Elect principles -_resistancesdacey
 
Components the diode
Components   the diodeComponents   the diode
Components the diodesdacey
 
Elect principles -_kirchhoffs_laws
Elect principles -_kirchhoffs_lawsElect principles -_kirchhoffs_laws
Elect principles -_kirchhoffs_lawssdacey
 
Binary Slides
Binary Slides Binary Slides
Binary Slides jnoles
 
Numbering system dental anatomy
Numbering system  dental anatomyNumbering system  dental anatomy
Numbering system dental anatomyMoamer Gabsa
 
Binary code - Beginning
Binary code - BeginningBinary code - Beginning
Binary code - BeginningDebbie Eitner
 
number system school ppt ninth class
number system school ppt ninth classnumber system school ppt ninth class
number system school ppt ninth classManan Jain
 
Computer number systems
Computer number systemsComputer number systems
Computer number systemsRevi Shahini
 
Number System
Number SystemNumber System
Number Systemitutor
 
BINARY NUMBER SYSTEM
BINARY NUMBER SYSTEMBINARY NUMBER SYSTEM
BINARY NUMBER SYSTEMZaheer Abbasi
 
Introduction to the Binary Number System
Introduction to the Binary Number SystemIntroduction to the Binary Number System
Introduction to the Binary Number SystemJames Hamilton
 
number system
number systemnumber system
number systemvirly dwe
 

Destacado (20)

Components logic gates
Components   logic gatesComponents   logic gates
Components logic gates
 
Elect principles -_capacitance
Elect principles -_capacitanceElect principles -_capacitance
Elect principles -_capacitance
 
Elect principles -_ac_circuits_year1
Elect principles -_ac_circuits_year1Elect principles -_ac_circuits_year1
Elect principles -_ac_circuits_year1
 
Elect principles -_ac_waveform_year1
Elect principles -_ac_waveform_year1Elect principles -_ac_waveform_year1
Elect principles -_ac_waveform_year1
 
Elect principles -_resistance
Elect principles -_resistanceElect principles -_resistance
Elect principles -_resistance
 
Components the diode
Components   the diodeComponents   the diode
Components the diode
 
Elect principles -_kirchhoffs_laws
Elect principles -_kirchhoffs_lawsElect principles -_kirchhoffs_laws
Elect principles -_kirchhoffs_laws
 
Binary Slides
Binary Slides Binary Slides
Binary Slides
 
Numebr system
Numebr systemNumebr system
Numebr system
 
Numbering system dental anatomy
Numbering system  dental anatomyNumbering system  dental anatomy
Numbering system dental anatomy
 
Number system
Number systemNumber system
Number system
 
Binary code - Beginning
Binary code - BeginningBinary code - Beginning
Binary code - Beginning
 
number system school ppt ninth class
number system school ppt ninth classnumber system school ppt ninth class
number system school ppt ninth class
 
Computer number systems
Computer number systemsComputer number systems
Computer number systems
 
Number System
Number SystemNumber System
Number System
 
BINARY NUMBER SYSTEM
BINARY NUMBER SYSTEMBINARY NUMBER SYSTEM
BINARY NUMBER SYSTEM
 
Amcat 3-DOWNLOAD ENABLED
Amcat 3-DOWNLOAD ENABLEDAmcat 3-DOWNLOAD ENABLED
Amcat 3-DOWNLOAD ENABLED
 
Introduction to the Binary Number System
Introduction to the Binary Number SystemIntroduction to the Binary Number System
Introduction to the Binary Number System
 
Number system
Number systemNumber system
Number system
 
number system
number systemnumber system
number system
 

Similar a Computers numbering systems (20)

DLD-Introduction.pptx
DLD-Introduction.pptxDLD-Introduction.pptx
DLD-Introduction.pptx
 
04 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa1604 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa16
 
Number system
Number systemNumber system
Number system
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
DCF QNA edited
DCF QNA editedDCF QNA edited
DCF QNA edited
 
Number_Systems (2).ppt
Number_Systems (2).pptNumber_Systems (2).ppt
Number_Systems (2).ppt
 
1.1.1 BINARY SYSTEM
1.1.1 BINARY SYSTEM1.1.1 BINARY SYSTEM
1.1.1 BINARY SYSTEM
 
Cit 1101 lec 02
Cit 1101 lec 02Cit 1101 lec 02
Cit 1101 lec 02
 
DLD Chapter-1.pdf
DLD Chapter-1.pdfDLD Chapter-1.pdf
DLD Chapter-1.pdf
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
 
Presentation of ICT.ppt.pptx
Presentation of ICT.ppt.pptxPresentation of ICT.ppt.pptx
Presentation of ICT.ppt.pptx
 
Computer Number system
Computer Number systemComputer Number system
Computer Number system
 
numbersystem-211022083557.pdf
numbersystem-211022083557.pdfnumbersystem-211022083557.pdf
numbersystem-211022083557.pdf
 
21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx
 
Number system
Number system Number system
Number system
 
Number system
Number system  Number system
Number system
 
Okkkkk
OkkkkkOkkkkk
Okkkkk
 
Digital Logic
Digital LogicDigital Logic
Digital Logic
 
binarycode.pptx
binarycode.pptxbinarycode.pptx
binarycode.pptx
 

Más de sld1950

Machines dc motors
Machines   dc motorsMachines   dc motors
Machines dc motorssld1950
 
Elect principles capacitance
Elect principles   capacitanceElect principles   capacitance
Elect principles capacitancesld1950
 
Electronics amplifiers
Electronics   amplifiersElectronics   amplifiers
Electronics amplifierssld1950
 
Electronics noise
Electronics   noiseElectronics   noise
Electronics noisesld1950
 
Electronics decibel
Electronics   decibelElectronics   decibel
Electronics decibelsld1950
 
Components passive
Components   passiveComponents   passive
Components passivesld1950
 
Components transistors
Components   transistorsComponents   transistors
Components transistorssld1950
 
Components operational amplifiers
Components  operational amplifiersComponents  operational amplifiers
Components operational amplifierssld1950
 
Components the diode
Components   the diodeComponents   the diode
Components the diodesld1950
 
Components 555 timer
Components   555 timerComponents   555 timer
Components 555 timersld1950
 
Components resistors
Components   resistorsComponents   resistors
Components resistorssld1950
 

Más de sld1950 (11)

Machines dc motors
Machines   dc motorsMachines   dc motors
Machines dc motors
 
Elect principles capacitance
Elect principles   capacitanceElect principles   capacitance
Elect principles capacitance
 
Electronics amplifiers
Electronics   amplifiersElectronics   amplifiers
Electronics amplifiers
 
Electronics noise
Electronics   noiseElectronics   noise
Electronics noise
 
Electronics decibel
Electronics   decibelElectronics   decibel
Electronics decibel
 
Components passive
Components   passiveComponents   passive
Components passive
 
Components transistors
Components   transistorsComponents   transistors
Components transistors
 
Components operational amplifiers
Components  operational amplifiersComponents  operational amplifiers
Components operational amplifiers
 
Components the diode
Components   the diodeComponents   the diode
Components the diode
 
Components 555 timer
Components   555 timerComponents   555 timer
Components 555 timer
 
Components resistors
Components   resistorsComponents   resistors
Components resistors
 

Último

Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
Digital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentDigital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentMahmoud Rabie
 
Landscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfLandscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfAarwolf Industries LLC
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...itnewsafrica
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Nikki Chapple
 
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...itnewsafrica
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Kaya Weers
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Karmanjay Verma
 
Infrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsInfrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsYoss Cohen
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Mark Simos
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024TopCSSGallery
 

Último (20)

Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
Digital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentDigital Tools & AI in Career Development
Digital Tools & AI in Career Development
 
Landscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfLandscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdf
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
 
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#
 
Infrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsInfrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platforms
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024
 

Computers numbering systems

  • 1. Computers – Numbering Systems The Binary System This is a numbering system to the base of two, meaning that it only has two digits 0 and 1. The binary system is the base numbering system used in computer and digital logic control systems. Binary numbers are written as a sequence of zero’s and one’s, where: 0101; 1000; 1001 are examples of four-bit binary numbers. Weighting Each column in the binary number represents a denary number as shown below and doubles with each column. This is called the ‘weighting’ of the numbering system. Each 1 or 0 multiplies a successive power of 2. 8 4 2 1 LSBMSB 23 22 21 20 Bin 1 1 0 1 = (1x8) + (1x4) + (0x2) + (1x1)= 13d
  • 2. Computers – Numbering Systems The Hexadecimal System Numbers in the binary system tend to get very long, the hex system is more compact and less prone to error. Each column represents a successive power of sixteen (base 16). Hex symbols 0 – 9 for decimal 0 – 9 and A to F for decimal 10 to 15. 256 16 1 162 161 160 Hex 2 3 4 = (2x256) + (3x16) + (4x1) = 564d Decimal Binary Hex 101 (10) 100 (1) 24 (16) 23 (8) 22 (4) 21 (2) 20 (1) 161 (16) 160 (1) 0 7 0 0 1 1 1 0 7 1 0 0 1 0 1 0 0 A 1 2 0 1 1 0 0 0 C 1 5 0 1 1 1 1 0 F 2 7 1 1 0 1 1 1 8
  • 3. Computers – Numbering Systems The Hexadecimal System To write a binary number in hexadecimal group the number into four-bit groups beginning with the LSB and write the hex equivalent of each group. Example Decimal 245 = 11110101 Group into four bits, = 1111 0101 Hex = F 5 Decimal 245 = F5 (Hex) The Octal System A base-8 system from an early era, used during the development of the first computer systems and is not commonly used these days. Although it does not require the extra symbols (A-F “hex”) it is extremely awkward when applied to byte-organised words of today’s computer systems.
  • 4. BINARY CODED DECIMAL (BCD) By converting (encoding) each decimal digit into a four-bit binary group we obtain a system called Binary Coded Decimal (BCD). This system is ideal for use when we wish to display a decimal digit from its binary equivalent eg digital displays. Each four-bit group is binary weighted and represents a single digit. Computers – Numbering Systems Example Decimal 245 = 2 4 5 BCD = 0010 0100 0101
  • 5. Computers – Numbering Systems 2. State the decimal equivalents represented by the binary numbers shown below, a) 01100101, b) 10110011, c) 10111101. Assessment 1. Write down the binary equivalents for denary numbers 0 to 12, 28, 32 and 64. 3. State the hexadecimal equivalents for the denary numbers shown below, a) 8, b) 12, c) 18, d) 28. 4. Convert the binary numbers in question 2 to their hexadecimal equivalents. 5. Convert the binary numbers in question 2 to their BCD equivalents.
  • 6. ASCII CODE This is the American Standard Code for Information Interchange. It is a method of coding alphabetic, numeric and punctuation characters into groups of 7-bits. Computers – Coding Systems Char Hex Dec Char Hex Dec A 41H 65 a 61H 97 B 42H 66 b 62H 98 C 43H 67 c 63H 99 0 30H 48 5CH 92 1 31H 49 ] 5DH 93 2 32H 50 < 3CH 60
  • 7. GRAY CODE The Gray code is used for mechanical shaft-angle encoders, the feature of this code is that only one bit changes in going from one state to the next. This method prevents errors, since there is no way of guaranteeing that all bits will change simultaneously at the boundary between two encoded states. Computers – Coding Systems Position Gray Code Position Gray Code 0 0000 8 1100 1 0001 9 1101 2 0011 10 1111 3 0010 11 1110 4 0110 12 1010 5 0111 13 1011 6 0101 14 1001 7 0100 15 1000 D0 D1 D2 D3 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 position LED’s
  • 8. 2’s COMPLEMENT The “2’s complement” is the method most widely used for integer computation in electronic systems. To obtain a negative number (2’s complement) first complement each bit of the positive number then add 1. Computers – Arithmetic Operations Check this by adding the original positive number to the 2’s complement representation. The result should be zero, since the 2’s complement changes the sign of the original positive number. Example Decimal 5 = 0101 1’s complement = 1010 +1 (2’s complement) = 1011
  • 9. Using the 2’s Complement Subtract B from A, take the 2’s complement of B (create a negative of B) then add this to A. Computers – Arithmetic Operations Example 5 - 2 = 5 + (-2) 2 = 0010 1’s complement = 110 +1 (2’s complement) = 1110 5 = 0101 Add = 0011 = 3
  • 10. Computers – Data Systems BITS to GIGABYTES The bit is short for binary digit and has two values (0 or 1) When four binary bits are grouped together they form a nybble, ‘0110’ and ‘1110’. When two nibbles, (eight binary bits) are grouped together they form a byte,‘10110101’ and ‘00110111’. A word is the term used to represent the unit of data in a particular system. In an eight bit system the word contains eight bits. Personal computers today use 32 and 64 bit words while pic’s and micro- controller’s and Z80cpu systems use four and eight bit words.
  • 11. Computers – Data Systems BITS to GIGABYTES – Common Units of Measure Kilobyte (kB) – Describes the data storage capacity of small systems e.g. memory capacity for micro-controllers and size of data files. 1kB = 1024 bytes (210 bytes). Megabyte (MB) – Describes the data storage capacity of memory devices, image files (bitmaps). 1MB = 1024 kB (220 bytes). Gigabyte (GB) – Describes the data storage capacity of hard drives, CD/DVD data storage devices. The gigabyte is the largest unit of capacity in use at present. 1GB = 1024 MB (230 bytes).