Professional Documents
Culture Documents
Computer Architecture 2
Computer Architecture 2
Computer Architecture
Numbering Systems
By Thilina Wanshathilaka
What is numbers
1
1/26/2024
Evolution of Numbers
• Tally Marks: One of the earliest methods of counting involved tally marks, where
people would make marks on a surface, such as sticks or stones, to represent
quantities. Tally marks are simple and intuitive and were likely one of the first ways
humans counted.
• Babylonian Number System (c. 2000 BCE): The Babylonians developed a positional
number system based on the number 60. This system used a base-60 (sexagesimal)
system, which influenced the division of hours, minutes, and seconds that we still
use today.
• Egyptian Hieroglyphs (c. 3000 BCE): The ancient Egyptians used a hieroglyphic
system for counting and recording numbers. They had symbols for each power of 10,
but the system lacked a clear concept of zero.
• Roman Numerals (c. 500 BCE - 400 CE): The Roman numeral system, which used
combinations of letters from the Latin alphabet to represent numbers, was widely
used in the Roman Empire. However, Roman numerals were not well-suited for
arithmetic operations.
Evolution of Numbers
• Indian Decimal System (c. 600 CE): The decimal system, based on powers of 10 and including
a symbol for zero, originated in India. It was later transmitted to the Islamic world and
Europe. This system laid the foundation for the modern decimal numeral system.
• Arabic Numerals (c. 9th - 10th centuries): The Indian numeral system was transmitted to the
Islamic world, where it was further developed and adopted. The use of Arabic numerals (1, 2,
3, etc.) and the concept of zero gradually spread to Europe during the Middle Ages.
• Introduction of Zero (c. 7th - 9th centuries): The concept of zero, crucial for the development
of a place-value system, was introduced to the mathematical world through Indian and
Islamic scholars. It became an integral part of the numeral systems in use today.
• The Renaissance and Scientific Revolution (14th - 17th centuries): During the Renaissance,
there was a resurgence of interest in ancient mathematical ideas, and new developments in
algebra and geometry emerged. The acceptance of decimal notation and the use of
positional notation with a zero became more widespread.
• Modern Decimal System (17th century - present): The modern decimal system, based on the
use of Arabic numerals and a place-value system, became the standard for mathematics and
everyday arithmetic. It is the system used worldwide today.
Computer Math
• Computers use the binary (base-2) numbering system for several fundamental
reasons related to the underlying architecture and design of electronic
circuits. Here are some key reasons why binary is used in computers
• Simplicity of Electronic Implementation: Electronic circuits in computers are based on
binary switches that can be either in an "on" state (representing 1) or an "off" state
(representing 0). This binary nature of electronic switches makes the design and
implementation of circuits simpler and more reliable.
• Reliability and Noise Immunity: Binary signals are less susceptible to errors caused by
noise in electronic circuits. The clear distinction between the "on" and "off" states makes
it easier to detect and correct errors, ensuring the reliability of data transmission and
storage.
• Ease of Miniaturization: Binary digits (bits) can be represented physically using smaller
and more compact electronic components. This is crucial for modern computing devices
where the miniaturization of components allows for the creation of smaller, faster, and
more powerful computers
2
1/26/2024
Computer Math
• Efficient Representation of Digital Information: Binary is well-suited for representing digital
information. By using just two digits (0 and 1), computers can efficiently represent and
manipulate data. This simplicity facilitates the design of logic circuits and the development of
algorithms for processing information.
• Logical Operations: Binary logic is straightforward to implement using basic logic gates such
as AND, OR, and NOT gates. These gates form the basis of digital logic circuits, allowing
computers to perform logical operations necessary for computation and decision-making.
Computer Math
2 270
2 135 0
2 62 1
2 36 0
2 18 0
2 9 0
2 4 1
2 2 0
1 0
3
1/26/2024
26 25 24 23 22 21 20
1 1 0 1 0 0 0
64 +32+0 + 8 + 0+ 0+0 =104
4
1/26/2024
0 .600 x2
1 .200 x2
0 .400 x2
………….. = 0.10010….
29 28 27 26 25 24 23 22 21 20
1 0 1 1 1 0 1 0 0 0
1 3 5 0
=13508
5
1/26/2024
29 28 27 26 25 24 23 22 21 20
1 0 1 1 1 0 1 0 0 0
2 E 8
=2E816
6
1/26/2024
7
1/26/2024
0 0 1 1 1 0 0 1
1 1 0 0 0 1 1 0
8
1/26/2024
9
1/26/2024
Two's Complement
• Primary Usage:
• Almost universally used in modern computers for representing signed integers.
• Provides a straightforward method for addition and subtraction, simplifying
arithmetic operations.
• Allows for efficient implementation of mathematical operations like addition,
subtraction, and multiplication.
• Reasons for Prevalence:
• Eliminates the need for special correction in arithmetic operations, making it
more efficient.
• Only one representation for zero simplifies calculations.
• Consistent behavior across arithmetic operations and ease of implementation in
hardware.
One's Complement
• Historical Usage:
• Historically used in some early computers and architectures.
• Requires special handling for end-around carry in arithmetic operations.
• Current Relevance:
• Rarely used in contemporary systems for general-purpose arithmetic.
• May be encountered in certain legacy systems or specialized applications.
10
1/26/2024
Signed Magnitude:
• Limited Usage:
• Rarely used in modern computing for general-purpose arithmetic.
• Simple conceptually but introduces complexities in arithmetic operations.
• Specialized Cases:
• May be used in specialized applications where explicit representation of
sign and magnitude is required.
• Limited to scenarios where arithmetic operations are not the primary
concern.
Any Questions ?
THANK YOU
End Of Session 1
11