0% found this document useful (0 votes)
168 views20 pages

Understanding Digital Data and Binary

Here are the key points about number systems: - Binary, decimal, octal and hexadecimal are different number systems that use different bases. - Binary uses base-2 (0,1), decimal uses base-10 (0-9), octal uses base-8 (0-7), and hexadecimal uses base-16 (0-9, A-F). - Converting between number systems involves expressing the value in one system as an equivalent value in the other system using place values based on the new base. - Bits are the smallest unit of digital information, while a byte contains 8 bits and is a common unit of computer data storage.

Uploaded by

melissa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
168 views20 pages

Understanding Digital Data and Binary

Here are the key points about number systems: - Binary, decimal, octal and hexadecimal are different number systems that use different bases. - Binary uses base-2 (0,1), decimal uses base-10 (0-9), octal uses base-8 (0-7), and hexadecimal uses base-16 (0-9, A-F). - Converting between number systems involves expressing the value in one system as an equivalent value in the other system using place values based on the new base. - Bits are the smallest unit of digital information, while a byte contains 8 bits and is a common unit of computer data storage.

Uploaded by

melissa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

DIGITAL DATA

 Data is raw facts and figures and can be in the form of numbers, symbols or
alphanumeric characters before processing. .
 As humans we use analogue data, such as sound or light waves and impulses
on our skin. Everything we see
and hear is a continuous transmission of analogue data to our senses.
 Analogue data is great for us as we can process and understand it.
 Computers cannot process analogue data, they are only capable of processing
digital data. Any data that we want a computer to process must first be
converted into digital data, This is data represented in the values 1 and 0 that
a computer can process.
 Digital data is a type data stored using digits (0’s and 1’s).
 A computer uses only two digits to store data the number 0’s and 1’s.
 Every file stored in our computers are made up of zero’s and one’s
 A computer can use digital data files to store , audio , video , text and images.
• Computers are powered by microprocessors. The microprocessor is the 'brain' of a computer. A
microprocessor is made up of millions of tiny electronic switches.
• The switches in a microprocessor are like any other switch. A switch can either be on or off.
• A microprocessor is called a digital device because it can only understand the two switch positions - on and
off. The on and off positions can be shown as 1 and O in binary.
• You have already learned that digital data is made up of l’s and O’ s.
• That is why a digital microprocessor can read digital data.
This means that all data must be converted to binary for a computer to be able to process it.
All of these can be converted to binary numbers and stored as
computer data:
• denary numbers
• letters and symbols
• sounds
• images.
BINARY & DECIMAL NUMBERS

 The number system that a computers uses has two Look at the table of binary and decimal
numbers .Identify any difference and
different digits: 0 and 1, this is called binary number. similarities that you have noticed
 Bi” in the word binary means 2. Decimal and Binary numbers
 The binary numbers are used in calculations the same
Decimal Binary
way decimal numbers are used.

 Binary and decimals numbers look different but they 1 0001


mean the same.
8 1000
 Decimal numbers uses ten digits , ranging from 0 to 9.

 The word deci ’ in decimal means 10.


18 10010

 Decimal number system are the number system that we 100 1100100
use in math to solve day to day problems.
Storing text using Binary Numbers

 A computer uses binary to store all media, binary can store text, images, sounds and even video.
 When a computer uses binary to store media it uses codes.

 For example in computers the word “hello” looks like this:010010000110010101101000110110001101111


Storing instructions Using binary numbers

 The instruction in the computer program are stored in binary, the


instruction are written in human language /alphabets and symbols .
 The instruction in a program must be converted in to binary so that
the computers can store and use them.
>> Example of instruction given to a robot.
>One step left (00)
>One step right (01)
>One step up (10)
>One step Down (10)
 Computers are powered by microprocessors, The microprocessors
are the brain of a computer.
 Microprocessors are made up of millions of tinny electronic
switches, they are like normal switches they can either turn on and
off.
 They are called digital devise because they only understand two
switch positions on and off . the on and off position can be shown
as 1’s and 0’s in binary.
1. Write down the two digits used in the binary number system.

2. Write down the eight extra digits used in the decimal system and are not used in binary.

3. In your own words , explain what digital data is

4. Describe three things stored in computer as binary code.


Understanding Binary Numbers

 Reading Binary numbers


 Binary is a base-2 numeral system, which means it
uses only two digits: 0 and [Link] the
on/off states. In contrast, the decimal system
(base-10) uses ten digits (0-9).
 In binary, each digit represents a power of 2, with
the rightmost digit representing 2^0 (1), the next
one to the left representing 2^1 (2), the next 2^2
(4), and so on.
Converting binary to decimal number
 You simply need to add up the decimal values of the  Example
binary digits, starting from the right and moving to the
left, where each digit represents a power of 2.
 Here's the general process:
 Start from the rightmost digit of the binary number.
 Assign a positional value of 2^0 (which is 1) to the
rightmost digit.
 Move to the left, and for each subsequent digit, double the
positional value (2^1, 2^2, 2^3, and so on).
 Multiply the binary digit (0 or 1) by its positional value.
 Sum up all the results to get the decimal equivalent
QUICK CHECK

 Convert the following binary to decimals


 1001101
 1110
 0011101
 1011
Converting decimal to binary numbers

 Converting a decimal number (base 10) to binary involves expressing the


decimal number in base 2 (binary system).
 Here's a step-by-step guide -;
 Write Down the Decimal Number:-example 62
 Divide the decimal number by 2 and write down the quotient (the result of the
division) and the remainder (the remainder left over when you divide). In this
case, when you divide 62 by 2
 Continue dividing the quotient from step 2 by 2 and writing down the quotient
and remainder until the quotient becomes 0. Keep track of all the remainders.
 Read the Binary Digits: Start from the bottom and read the remainders from
bottom to top. This will give you the binary representation of the decimal
number.
Converting decimal to binary numbers

Example 1 Example 2
QUICK CHECK

 Converting decimal to binary numbers


 40
 10
 124
 11
 8
 124
Number Systems

 Octal Number System  Hexadecimal Number System


 The hexadecimal number system
 In an octal number system, the
uses 16 digits including 6 letters of
base is 8. Hence, there are only alphabet (hex means six).These
eight symbols or digits: 0, 1,2, 3, 4, include the symbols 0 to 9 and A to
5, 6, and 7 (8 and 9 do not exist in F. The primary reasons for
this system). The largest single hexadecimal are-
 (1) It can represent binary values in
digit is 7 (one less than the base 8). a more compact and readable
Each position in an octal number form, and
represents a power of the base (8).  (2) The conversion between the
 Octal representation is (112)8 binary and the hexadecimal
number systems is very efficient.
 0-9 and A-F
Number Systems
 DECIMAL TO OCTAL CONVERSION
• Octal to Decimal Number System
 Involves dividing the decimal number by 8 repeatedly
Conversion ---Assign a positional value to
and recording the remainders at each step until the
quotient becomes zero. each digit in the octal number, starting from
the right and increasing by a power of 8 for
each position to the left. The rightmost digit
has a positional value of 8^0, the next digit to
the left has a positional value of 8^1, the next
one has 8^2, and so on.
Number Systems
 DECIMAL TO HEXADECIMAL CONVERSION  HEXADECIMAL TO DECIMAL CONVERSION
 The conversion is similar for any decimal number. Just keep  Assign a positional value to each digit in the hexadecimal
dividing by 16 and recording the remainders until the quotient number, starting from the right and increasing by a power of
becomes zero, and then convert the remainders to 16 for each position to the left. The rightmost digit has a
hexadecimal. positional value of 16^0 (which is 1), the next digit to the left
has a positional value of 16^1 (which is 16), the next one has
16^2 (which is 256), and so on
Number Systems
 Bits and Bytes
 Each digit in a binary number is
called a bit. There are four bits in
the binary number 1101.
 A group of 8 bits is called a Byte.
 Groups of bits make up storage
units in the computer, called
characters, bytes, or words, which
are manipulated as a [Link] a
byte is called Nibble. A nibble is a
collection of bits on a 4-bit
boundary. Each 0 and 1 in the
diagram indicates a bit
Number Systems

 BYTE (BINARY TERM)


 A group of 8 bits is called a Byte. Evidently, many such groups can be made in the
binary system. Exactly speaking, 28 or 256 bytes are possible and they can represent
256 characters.
 Clearly, these 256 bytes are enough to represent 26 letters of the alphabet (both in
capital and small forms), numbers from 0 to 9, punctuation marks, currency signs,
and some special symbols.
 These 256 bytes are represented by different binary numerals starting from
00000000 and ending with 11111111.
QUICK CHECK

 What is number system?


 b) Define base or radix of number
system.
 c) What is decimal number
system?
 d) What is binary number system?
Why is it used in computer
system?
 e) What is octal number system?
 f) What is hexadecimal number
system? List its numbers and
characters set.

Common questions

Powered by AI

Understanding binary representation profoundly impacts memory and data manipulation because it dictates how data is stored, accessed, and manipulated within a computer system . Memory in computers is structured in terms of bits and bytes, where each bit represents a binary state that forms binary numbers for storing data . This binary structure supports efficient data manipulation algorithms and logical operations within the system, influencing everything from simple calculations to complex data processing tasks . Upon this basis, programmers and computer engineers design memory-hierarchies and storage schemas to optimize performance and storage efficiency .

Conversion between number systems like binary to decimal or decimal to octal is crucial in computer science for facilitating human-computer interaction and optimizing data representation . Computers inherently operate using binary, but humans find it more intuitive to interact with decimal or other numbering systems. By converting binary to decimal, humans can understand and manipulate numerical data effortlessly . Likewise, octal and hexadecimal systems condense binary data for simplicity and readability, crucial for debugging and programming applications . Thus, these conversions act as a bridge between human-readable forms and machine-compatible forms .

The binary number system functions using only two digits, 0 and 1, making it a base-2 numeral system . In contrast, the decimal system uses ten digits, ranging from 0 to 9, forming a base-10 numeral system . Binary is suitable for computational use because it aligns with the physical architecture of computers, where data processing is based on on/off states of electronic switches in microprocessors, represented by 1s and 0s . Each position in a binary number represents a power of 2, while in the decimal system, it represents a power of 10 . This binary structure simplifies digital calculations and storage .

Binary, octal, and hexadecimal number systems are similar in that they are all used to represent numerical data in computing, yet differ in base and representation . Binary is a base-2 system using two digits (0 and 1). Octal is a base-8 system, using digits 0 through 7, efficient for handling binary data by reducing its size, where three binary digits convert directly into one octal digit . Hexadecimal is a base-16 system, using digits 0-9 and letters A-F, providing compact representation for binary values and easy conversion compared to other systems, reflecting a direct mapping of one hexadecimal digit to four binary digits . These systems provide efficient data encoding and simplification for various computing needs .

Microprocessors being digital devices is pivotal because it allows them to execute precise, binary-based tasks using their on/off electronic switches, crucial for accurate computation and signal processing . This digital nature supports binary data processing, essential for arithmetic operations, logical decisions, and it enables clocked operation to synchronize tasks at high speed within the computer architecture . Consequently, digital microprocessors form the core of modern computing systems, allowing for the development of complex, reliable electronics that underpin today's technology infrastructure, from personal computers to sophisticated digital equipment .

In a computing environment, instructions are stored and processed using binary code because computers only understand binary numbers - sequences of 1s and 0s . Human-readable instructions written in a programming language are converted into machine code in binary form so that they can be executed by the computer's microprocessor . The binary code operates the microprocessor’s switches between "on" and "off" states corresponding to the binary digits, allowing the physical hardware to carry out the specified instructions sequentially . This process ensures precise control and execution within computer systems .

Digital data is essential for computer processing because computers can only understand and process data in binary form, which consists of 1s and 0s. This is due to the structure of microprocessors, which operate using millions of tiny electronic switches that represent "on" or "off" states corresponding to binary digits . On the other hand, analogue data represents continuous real-world phenomena like sound waves or light, which humans naturally process but computers cannot without conversion . Therefore, any analogue data must first be converted into digital format before a computer can process it .

In computer systems, a bit is the smallest unit of data and represents a single binary value of either 0 or 1 . A group of 8 bits forms a byte, which is a standard unit of data used to represent characters, numbers, or other types of data . Bytes are significant because they group multiple bits together to represent complex data structures within computers, such as larger numbers or text . This allows computers to handle a broader range of information efficiently .

The hexadecimal system is practically advantageous over binary and octal systems due to its compact and human-friendly format that efficiently maps binary data . It is commonly used in programming and electronics to simplify binary-coded values, as each hexadecimal digit represents a nibble or four binary digits, thereby reducing the bulkiness of long binary numbers . This conciseness facilitates easier debugging, memory addressing, and representation of machine code. Additionally, hexadecimal notation is essential in representing colors in web design and defining registers in hardware, enhancing readableness and reducing errors .

To convert a decimal number to its binary equivalent, you divide the decimal number by 2, writing down the quotient and the remainder. Continue dividing the quotient by 2, recording the remainders until the quotient becomes zero. These remainders, read in reverse order, represent the binary equivalent . For example, to convert the decimal number 62: divide 62 by 2 to get a quotient of 31 and remainder of 0, divide 31 by 2 to get 15 and remainder 1, continue like this until you reach 0; thus, the binary equivalent is 111110 .

You might also like