Number Systems
Number Systems
EEE 319
Lecturer
EEE, BUBT
[email protected]
Objective:
1. Define the term bit, nibble, byte, word, MSB and LSB.
Section I Definition
bit 0
nibble 0000
byte 0000 0000
word 0000 0000 0000 0000
MSB The leftmost bit of a binary word is referred to as the most significant bit.
LSB The rightmost bit of a binary word is referred to as the least significant bit.
Ans: Because some number systems are more optimal than others depending on
the task at hand.
a. Decimal number system
The binary system, based on 2, is just another special number system, and is
used by digital electronic devices because digital circuits work on an
electrical on or off two state system, a number system based on 2 is
therefore much easier for electronic devices to use.
16 is a power of 2 (24), so exactly one hex digit can represent the same
sixteen possible values as four bits, hence data compactness is achieved. For
example, byte values can range from 0 to 255 (decimal), but may be more
conveniently represented as two hexadecimal digits in the range 00 to FF.
Again example 1101 1010 is the 8-bit binary number which can be
expressed comfortably as DA in the hexadecimal form.
In computers, the main numeral systems are based on the positional system
in base 2 (binary numeral system), with two binary digits, 0 and 1. Positional
systems obtained by grouping binary digits by three (octal numeral system)
or four (hexadecimal numeral system) are commonly used.
For very large integers, bases 232 or 264 (grouping binary digits by 32 or
64, the length of the machine word) are used.
Memory can store data in the form of 0s and 1s only. A number is stored in the
memory in its binary equivalent.
Note:
Each character is stored in a single byte value (8 bits).
ASCII only uses 7 bits, giving 128 possible characters (Max. value 7F).
Only 96 of the ASCII characters are printable.
Remaining values are control codes.
The number 0 9 is not the same as the character 0 9.
The characters 0, 1, ... , 9 are used in text to display values in human
readable form.