3.1 Number Representation
This lesson explores the principles of data and instruction representation in digital systems using binary states. It covers decimal, binary, octal, and hexadecimal number systems, their mutual conversions (including fractional values), and mechanisms for signed integer representation including Sign-Magnitude, One's Complement, and Two's Complement formats.
ප්රධාන සංකල්ප
- Bit
- The smallest unit of data in digital devices, standing for binary digit, which holds a value of either 0 or 1.
- Most Significant Digit (MSD)
- The digit in a number that carries the highest positional value.
- Least Significant Digit (LSD)
- The digit in a number that carries the lowest positional value.
- Sign-Magnitude
- A representation scheme where the Most Significant Bit (MSB) denotes the sign (0 for positive, 1 for negative) and the remaining bits represent the magnitude of the number.
- One's Complement
- A system for representing signed numbers where negative values are obtained by inverting all the bits (0s to 1s and 1s to 0s) of their positive representation.
- Two's Complement
- A signed number representation scheme where negative values are generated by taking the One's Complement of the positive number and adding 1 to the least significant bit, allowing for efficient arithmetic hardware.
MCQ කට්ටල
MCQ 12විභාගයේදී
- Inter-conversion between decimal, binary, octal, and hexadecimal systems (including fractional numbers)
- Determining the MSD and LSD of a given numerical value
- Representing signed negative integers using Sign-Magnitude, One's Complement, and Two's Complement formats
