SlideShare a Scribd company logo
The Binary Number
System:
The binary number system forms the basis of computer
language. It's a simple yet powerful system that allows
computers to process and store information. This
fundamental concept is crucial for understanding how
computers work at their core.
by Mark Saura
MS
Machine Language: The Computer's
Native Tongue
1 Binary Code
A computer works with a language known as a machine
language.
Machine language consists of binary code, using only 0s and 1s.
2 Direct Execution
A computer does not work with decimal numbers.
The computer's microprocessor can execute machine language
instructions without translation.
Data: Information in Binary
Form
Numbers
Data means numbers or any information that goes into the computer.
The data are be stored, process or manipulated, updated by the
computer in order to produce the desired result. That is why
computers are often called data processors.
Letters and symbols are encoded into binary using standards like ASCII.
Visual data is represented as binary patterns of pixels. Audio/Sound
waves are sampled and converted into binary data.
Data Processing: The Core Function of
Computers
1
Input
Data is entered into the computer
through various input devices.
2 Storage
The computer stores data in
memory or on storage devices.
3
Processing
The CPU manipulates and processes
the data according to instructions. 4 Output
Processed data is presented through
output devices like monitors or
printers.
Computer Programs:
Instructions for Data
Processing
Series of Instructions
Programs are step-by-step instructions telling the computer what to
do.
Task-Specific
Programs are designed for specific tasks like calculations or data
management.
Binary Conversion
Programs are converted to binary code for the computer to
understand.
High-Level Programming Languages
BASIC
A beginner-friendly
language with simple
syntax. It's often used for
educational purposes.
Pascal
Known for its clear
structure. Pascal is
commonly used in teaching
programming concepts.
C++
A powerful language for
system and application
development. It offers high
performance and flexibility.
From High-Level to Machine Code
1
Writing Code
Programmers write code in a high-level language like C++ or
Python.
2
Compilation
The code is compiled, translating it into machine-readable
instructions.
3
Execution
The computer's processor executes the compiled binary code
directly.
Output: Presenting Results
Output Type Device Format
Visual Monitor Digitized alphanumeric
Print Printer Alphanumeric on paper
Audio Speakers Sound waves
Binary Number System
Binary numbers are used extensively throughout the digital systems, because of the very
nature of electronics. A 1 can be represented by a saturated transistor, a light turned on or a
relay energized. A 0 can be represented as a cutoff transistor, a light turn off, or a de-
energized relay. In each of these, there are only two values that the device can assume. For
this reason, the binary number system will be studied in detail.
Converting Binary to Decimal, Octal and
Hexadecimal
To convert binary numbers to decimal, multiply each digit in the binary number by 2
raised to the power of its position, starting with the rightmost digit.
1.
In converting binary to octal number, group the binary into sets of three starting from
the rightmost digit. Then convert each three binary digits into its corresponding octal
digit.
2.
On the other hand, to convert binary to hexadecimal, group the binary digits into sets
of four starting from the rightmost digit. Then convert each group of four binary digits
into its corresponding hexadecimal digit.
3.
Computer Number System Table
Binary to Decimal (1001101)
To convert binary numbers to decimal, multiply each digit in the binary number by 2
raised to the power of its position, starting with the rightmost digit.
Binary to Decimal (1001101)
To convert binary numbers to decimal, multiply each digit in the binary number by 2
raised to the power of its position, starting with the rightmost digit.
Octal to Binary
On the other hand, to convert binary to hexadecimal, group the binary digits into sets of
four starting from the rightmost digit. Then convert each group of four binary digits into its
corresponding hexadecimal digit.
Activity 2: Binary to Decimal, Octal, and
Hexadecimal
The Octal Number
System:
We must remember that this number system is only an
extension of binary system, it was develop only to express
binary numbers concisely. This number system has a base
of 8 and uses the digits from the set of {0, 1, 2, 3, 4, 5, 6, 7}.
by Mark Saura
MS
Converting Octal to Decimal, Binary and
Hexadecimal
To convert Octal Numbers to binary, simply replace each octal digit with the
corresponding 3-bit binary string.
1.
To convert Octal to hexadecimal, do the same thing as you did when converting to
octal to binary. When the octal numbers are now in the binary form, group them by 4
and convert to its corresponding hexadecimal number.
2.
To convert octal numbers to decimal numbers, multiply each digit in the octal number
by 8 raised to the power of its position, starting with the rightmost digit.
3.
Octal to Binary System
To convert Octal Numbers to binary, simply replace each octal digit with the
corresponding 3-bit binary string.
For example,
to convert 2138, let us replace them with 3-bit binary string starting with
010 (for 2),
001 (for 1)
011 (for 3)
Thus, you get 100010112.
Octal to Hexadecimal System
To convert Octal to hexadecimal, do the same thing as you did when converting to octal
to binary. When the octal numbers are now in the binary form, group them by 4 and
convert to its corresponding hexadecimal number.
For example,
Convert 3028 to hexadecimal.
First replace each octal digit: 2 becomes 010, 0 becomes 000, 3 becomes 011.
We now have 011000010.
Then, group them by four and convert them into its corresponding hexadecimal digit:
0010 becomes 2, and 1100 becomes C
C216 in hexadecimal
Octal to Decimal System
To convert octal numbers to decimal numbers, multiply each digit in the octal number by
8 raised to the power of its position, starting with the rightmost digit.
For example,
The Hexadecimal
Number System:
Hexadecimal number system was develop to express
binary numbers concisely. Computer word length comes
in 8 bits, 16 bits, 32 bits, and so on. This number system has
a base of 16 and uses digits from 0 to 9 and symbols from A
to F. The symbol A represents 10, B represents 11, C
represents 12, D is 13, E is 14 and F as 15.
by Mark Saura
MS
Converting Hexadecimal to Binary
To convert Hexadecimal numbers to binary, simply replace each hexadecimal digit with
the corresponding 4-bit binary string.
Converting Hexadecimal to Octal
To convert hexadecimal to octal, convert the hexadecimal number to binary, then group
by three the binary and apply corresponding octal numbers.
Converting Hexadecimal to Decimal
To convert hexadecimal numbers to decimal numbers, multiply each digit in the octal
number by 16 raised to the power of its position, starting with the rightmost digit.
Activity 3: Hexadecimal to Decimal, Octal, and
Binary

More Related Content

PPTX
Number system by ammar nawab
PPTX
Psychology presentation for students basic and easy
PPTX
Chapter two FHI.pptx
PPTX
number system 1.pptx
PPTX
Chapter 3.pptx
PPT
Cit 1101 lec 02
PPTX
Types of number system , NUMBER SYSTEMNumber systems are the technique to rep...
DOCX
Number system
Number system by ammar nawab
Psychology presentation for students basic and easy
Chapter two FHI.pptx
number system 1.pptx
Chapter 3.pptx
Cit 1101 lec 02
Types of number system , NUMBER SYSTEMNumber systems are the technique to rep...
Number system

Similar to The Number System( Introduction to Binary System) (20)

DOCX
Unit 4.docx
PPT
Number systems r002
PPTX
Number system de (2131004) - 160920107003
PPTX
Lecture1b data types
PDF
Numbering System Base Conversion
PPTX
chapter 3 number systems register transfer
PPT
02 number systems
PPTX
Number system Number system Number system.pptx
PPTX
LEC 1.pptx
PPTX
Number systems and conversions
PPT
Number System.ppt
PPTX
Assembly language 2
PDF
Number system
PDF
IN 1300 LEC Basic electronic 1 Basic electronic 1 .pdf
PPT
ENG241-Week1-NumberSystemsaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
PPTX
CSC304 - Digital Logic & Computer Organization and.pptx
PPT
Number System- binary octal hexadecimal numbers
PPT
Number_Systems (2).ppt
PPTX
ees pptfdgddrgncbfxdbfngdfxvcbnbcvdzfxv cgn
PPT
Digital Logic Design lec 2 slide.ppt DLD Lec 1.ppt
Unit 4.docx
Number systems r002
Number system de (2131004) - 160920107003
Lecture1b data types
Numbering System Base Conversion
chapter 3 number systems register transfer
02 number systems
Number system Number system Number system.pptx
LEC 1.pptx
Number systems and conversions
Number System.ppt
Assembly language 2
Number system
IN 1300 LEC Basic electronic 1 Basic electronic 1 .pdf
ENG241-Week1-NumberSystemsaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
CSC304 - Digital Logic & Computer Organization and.pptx
Number System- binary octal hexadecimal numbers
Number_Systems (2).ppt
ees pptfdgddrgncbfxdbfngdfxvcbnbcvdzfxv cgn
Digital Logic Design lec 2 slide.ppt DLD Lec 1.ppt
Ad

More from MarkSaura2 (14)

PPTX
Quarter 4 _EIM_Reistor Reading_Week5.pptx
PPTX
For-Review_EIM_Types of Circuit Breakers_Week3.pptx
PPTX
Quarter 4_EIM_Intorduction to GFCI_Week2.pptx
PPTX
Quarter 4_EIM_Protective Devices_Week1.pptx
PPSX
Electrical Installation and Maintenance Introduction to Electricity.ppsx
PPTX
Different Types of Tack Welding Presentation
PPTX
AM and FM Modulation Presentation (1).pptx
PPTX
Cellular_Signal_System_Presentation.pptx
PPTX
Digital Concept - Introduction to electronics
PPTX
The Five Essentials to Obtain Good Quality Welding
PPTX
Parts of Portable Electric Grinders.pptx
PDF
Introduction-to-Digital Electronics Concept
PDF
Number-Systems-and-Conversion(Decimal and Binary System)
PPTX
PERFORM MENSURATION AND CALCULATION.pptx
Quarter 4 _EIM_Reistor Reading_Week5.pptx
For-Review_EIM_Types of Circuit Breakers_Week3.pptx
Quarter 4_EIM_Intorduction to GFCI_Week2.pptx
Quarter 4_EIM_Protective Devices_Week1.pptx
Electrical Installation and Maintenance Introduction to Electricity.ppsx
Different Types of Tack Welding Presentation
AM and FM Modulation Presentation (1).pptx
Cellular_Signal_System_Presentation.pptx
Digital Concept - Introduction to electronics
The Five Essentials to Obtain Good Quality Welding
Parts of Portable Electric Grinders.pptx
Introduction-to-Digital Electronics Concept
Number-Systems-and-Conversion(Decimal and Binary System)
PERFORM MENSURATION AND CALCULATION.pptx
Ad

Recently uploaded (20)

PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
cuic standard and advanced reporting.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Electronic commerce courselecture one. Pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Machine learning based COVID-19 study performance prediction
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Digital-Transformation-Roadmap-for-Companies.pptx
Network Security Unit 5.pdf for BCA BBA.
cuic standard and advanced reporting.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Understanding_Digital_Forensics_Presentation.pptx
MYSQL Presentation for SQL database connectivity
Unlocking AI with Model Context Protocol (MCP)
MIND Revenue Release Quarter 2 2025 Press Release
Per capita expenditure prediction using model stacking based on satellite ima...
“AI and Expert System Decision Support & Business Intelligence Systems”
NewMind AI Weekly Chronicles - August'25 Week I
Mobile App Security Testing_ A Comprehensive Guide.pdf
The AUB Centre for AI in Media Proposal.docx
Empathic Computing: Creating Shared Understanding
Electronic commerce courselecture one. Pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Diabetes mellitus diagnosis method based random forest with bat algorithm
Encapsulation_ Review paper, used for researhc scholars
Machine learning based COVID-19 study performance prediction

The Number System( Introduction to Binary System)

  • 1. The Binary Number System: The binary number system forms the basis of computer language. It's a simple yet powerful system that allows computers to process and store information. This fundamental concept is crucial for understanding how computers work at their core. by Mark Saura MS
  • 2. Machine Language: The Computer's Native Tongue 1 Binary Code A computer works with a language known as a machine language. Machine language consists of binary code, using only 0s and 1s. 2 Direct Execution A computer does not work with decimal numbers. The computer's microprocessor can execute machine language instructions without translation.
  • 3. Data: Information in Binary Form Numbers Data means numbers or any information that goes into the computer. The data are be stored, process or manipulated, updated by the computer in order to produce the desired result. That is why computers are often called data processors. Letters and symbols are encoded into binary using standards like ASCII. Visual data is represented as binary patterns of pixels. Audio/Sound waves are sampled and converted into binary data.
  • 4. Data Processing: The Core Function of Computers 1 Input Data is entered into the computer through various input devices. 2 Storage The computer stores data in memory or on storage devices. 3 Processing The CPU manipulates and processes the data according to instructions. 4 Output Processed data is presented through output devices like monitors or printers.
  • 5. Computer Programs: Instructions for Data Processing Series of Instructions Programs are step-by-step instructions telling the computer what to do. Task-Specific Programs are designed for specific tasks like calculations or data management. Binary Conversion Programs are converted to binary code for the computer to understand.
  • 6. High-Level Programming Languages BASIC A beginner-friendly language with simple syntax. It's often used for educational purposes. Pascal Known for its clear structure. Pascal is commonly used in teaching programming concepts. C++ A powerful language for system and application development. It offers high performance and flexibility.
  • 7. From High-Level to Machine Code 1 Writing Code Programmers write code in a high-level language like C++ or Python. 2 Compilation The code is compiled, translating it into machine-readable instructions. 3 Execution The computer's processor executes the compiled binary code directly.
  • 8. Output: Presenting Results Output Type Device Format Visual Monitor Digitized alphanumeric Print Printer Alphanumeric on paper Audio Speakers Sound waves
  • 9. Binary Number System Binary numbers are used extensively throughout the digital systems, because of the very nature of electronics. A 1 can be represented by a saturated transistor, a light turned on or a relay energized. A 0 can be represented as a cutoff transistor, a light turn off, or a de- energized relay. In each of these, there are only two values that the device can assume. For this reason, the binary number system will be studied in detail.
  • 10. Converting Binary to Decimal, Octal and Hexadecimal To convert binary numbers to decimal, multiply each digit in the binary number by 2 raised to the power of its position, starting with the rightmost digit. 1. In converting binary to octal number, group the binary into sets of three starting from the rightmost digit. Then convert each three binary digits into its corresponding octal digit. 2. On the other hand, to convert binary to hexadecimal, group the binary digits into sets of four starting from the rightmost digit. Then convert each group of four binary digits into its corresponding hexadecimal digit. 3.
  • 12. Binary to Decimal (1001101) To convert binary numbers to decimal, multiply each digit in the binary number by 2 raised to the power of its position, starting with the rightmost digit.
  • 13. Binary to Decimal (1001101) To convert binary numbers to decimal, multiply each digit in the binary number by 2 raised to the power of its position, starting with the rightmost digit.
  • 14. Octal to Binary On the other hand, to convert binary to hexadecimal, group the binary digits into sets of four starting from the rightmost digit. Then convert each group of four binary digits into its corresponding hexadecimal digit.
  • 15. Activity 2: Binary to Decimal, Octal, and Hexadecimal
  • 16. The Octal Number System: We must remember that this number system is only an extension of binary system, it was develop only to express binary numbers concisely. This number system has a base of 8 and uses the digits from the set of {0, 1, 2, 3, 4, 5, 6, 7}. by Mark Saura MS
  • 17. Converting Octal to Decimal, Binary and Hexadecimal To convert Octal Numbers to binary, simply replace each octal digit with the corresponding 3-bit binary string. 1. To convert Octal to hexadecimal, do the same thing as you did when converting to octal to binary. When the octal numbers are now in the binary form, group them by 4 and convert to its corresponding hexadecimal number. 2. To convert octal numbers to decimal numbers, multiply each digit in the octal number by 8 raised to the power of its position, starting with the rightmost digit. 3.
  • 18. Octal to Binary System To convert Octal Numbers to binary, simply replace each octal digit with the corresponding 3-bit binary string. For example, to convert 2138, let us replace them with 3-bit binary string starting with 010 (for 2), 001 (for 1) 011 (for 3) Thus, you get 100010112.
  • 19. Octal to Hexadecimal System To convert Octal to hexadecimal, do the same thing as you did when converting to octal to binary. When the octal numbers are now in the binary form, group them by 4 and convert to its corresponding hexadecimal number. For example, Convert 3028 to hexadecimal. First replace each octal digit: 2 becomes 010, 0 becomes 000, 3 becomes 011. We now have 011000010. Then, group them by four and convert them into its corresponding hexadecimal digit: 0010 becomes 2, and 1100 becomes C C216 in hexadecimal
  • 20. Octal to Decimal System To convert octal numbers to decimal numbers, multiply each digit in the octal number by 8 raised to the power of its position, starting with the rightmost digit. For example,
  • 21. The Hexadecimal Number System: Hexadecimal number system was develop to express binary numbers concisely. Computer word length comes in 8 bits, 16 bits, 32 bits, and so on. This number system has a base of 16 and uses digits from 0 to 9 and symbols from A to F. The symbol A represents 10, B represents 11, C represents 12, D is 13, E is 14 and F as 15. by Mark Saura MS
  • 22. Converting Hexadecimal to Binary To convert Hexadecimal numbers to binary, simply replace each hexadecimal digit with the corresponding 4-bit binary string.
  • 23. Converting Hexadecimal to Octal To convert hexadecimal to octal, convert the hexadecimal number to binary, then group by three the binary and apply corresponding octal numbers.
  • 24. Converting Hexadecimal to Decimal To convert hexadecimal numbers to decimal numbers, multiply each digit in the octal number by 16 raised to the power of its position, starting with the rightmost digit.
  • 25. Activity 3: Hexadecimal to Decimal, Octal, and Binary