Number Systems
Number Systems
Number Systems
Denary Number System
• The denary number system, also known as the decimal system, is the number system
we use in our day-to-day life.
• These two states can easily represent the binary digits 1 and 0.
• Binary is less prone to errors because it only has two distinct states.
• Processing and storage are more efficient with binary as it matches the fundamental
operations of logic circuits.
• It is easier to convert to and from binary compared to denary, simplifying the process.
Converting between number systems
10
2 16
S E E N OT E BO O K F O R R EF E R E N C E.
Binary addition
See notebook for reference.
Two’s complement
• Two's complement is a system used in computers to represent both positive and
negative numbers in binary.
• Since computers can't directly handle negative signs, they use two's complement to
manage negative numbers.
• The most significant bit (the leftmost bit) indicates the sign: 0 for positive and 1 for
negative.
S E E N OT E BO O K F O R R EF E R E N C E.
Measurement of data storage
• Bit: The most basic unit of data, representing a binary value (0 or 1).
• The SI unit system is based on powers of 10. However, this system cannot accurately
represent the way computers process and store data, which is based on powers of 2.
Therefore, another system, the IEC unit system, was created to align with binary
calculations used in computing.
• The IEC system uses binary prefixes (like KiB, MiB, GiB) that match the binary nature of
digital data storage, providing clarity and avoiding confusion that arises when using
decimal-based SI units for measurements in computing.
SI System
IEC System
• Simple and easy to use. Sufficient for basic English text and control characters.
• Limited character set (only 128 characters). Cannot represent characters from other
languages or additional symbols.
Extended ASCII
• Uses 8 bits per character.
• Includes additional characters and symbols not available in standard ASCII. Useful for
basic European languages and some symbols.
• Still limited in representing global languages and diverse symbols. Different extended
ASCII versions for different platforms.
Unicode
• Variable length (8, 16, or 32 bits per character).
• Represents over 143,000 characters from multiple languages and symbol sets.
• Comprehensive character set covering almost all written languages. Supports emojis,
mathematical symbols, and more.
• Larger memory usage due to variable-length encoding. More complex than ASCII or
Extended ASCII.
Sampling
• The process of measuring the amplitude of
the sound wave at regular intervals.
• Sample Rate:
Bit Depth
• The number of bits used to represent each
sample.
• Each pixel represents a single point in the image and has its own colour value.
Resolution
• The number of pixels in an image, typically described in width x height (e.g., 1920x1080).
Colour Depth
• The number of bits used to represent the colour of each pixel.
• Lossless Compression
• Lossy Compression
• Faster Transmission: Uses less bandwidth, speeding up internet and data transfers.
Lossless compression
• Reduces file size by permanently removing some data, which slightly reduces quality.
• How: Eliminates less noticeable data, using algorithms like JPEG for images and MP3
for audio.
• When: Used for media files (images, audio, video) where small file size is more
important than perfect quality.
Lossy compression
• Reduces file size by permanently removing some data, which slightly reduces quality.
• How: Eliminates less noticeable data, using algorithms like JPEG for images and MP3
for audio.
• When: Used for media files (images, audio, video) where small file size is more
important than perfect quality.