What is ASCII Code ?
ASCII (American Standard Code for Information Interchange) code is a standard system used to represent text characters as numeric codes in digital electronics and computing. In ASCII code, each character is assigned a unique 7-bit code, allowing for a total of 128 possible characters.
For example, the letter "A" is represented in ASCII code as the number 65. The letter "B" is represented as the number 66, and so on. Punctuation marks, numbers, and special characters also have unique ASCII codes.
Binary Addition
Let's say we want to add the binary numbers 101011 and 11100 together. First, we want to line up the digits, making sure each column is added correctly.
1 0 1 0 1 1 + 0 1 1 1 0 0
There are two types of complements in a binary number system: the one's complement and the two's complement.
One's Complement
To find the one's complement of a binary number, you simply need to flip all the bits (0 becomes 1 and 1 becomes 0) in the binary number. For example:
Binary number : 11001101 One's complement : 00110010
Computer hardware recognizes two formats : unsigned and signed
Unsigned Numbers
In digital design, an unsigned number is a binary number that represents only magnitude and not the sign. It uses a fixed number of bits to represent a range of non-negative values. The range of values that can be represented by an unsigned number system is always positive and includes 0.
What is the number system ?
The number system is a way of representing numerical values. It is a set of rules, symbols and processes that allow us to count, measure, and calculate numerical quantities. The most common number systems are the decimal system, which uses the digits 0-9, and the binary system, which uses only 0 and 1. Other number systems include octal, hexadecimal, and Roman numerals. Each number system has its own unique properties and applications, and is used in various fields such as mathematics, computer science, engineering, and physics.