Good progress today too! Five hours of Number Systems completed.
Incidentally, sir released a video to study for longer hours with the pomodore or some technique. Ironically the thing is I ended up watching five episodes of that two and a half men. Now closed the tab to write this!
Hey few things to be noted in number systems is,
The largest number possible to represent using n digits of base b is (b to the power of n) - 1.
Base is also called radix.
Minimum number of digits required to represent a k digit base b number in base x system is (n) >= k(log b to the base x).
Complementary Number system is mainly proposed to do subtraction using addition circuit already present.
Base b has two types of complements: b-1 's complement and b's complement.
So, how the subtraction (X-Y) works using complements is as below:
For b-1 's complement:
If X-Y>=1, ignore carry and add 1 to the X+Ycomplement
If X-Y<1, get the b-1 's complement of X+Ycomplement and negate the result to get answer in a familiar form.
For b 's complement:
If X-Y>=0, ignore carry to the X+Ycomplement
If X-Y<0, get the b 's complement of X+Ycomplement and negate the result to get answer in a familiar form.
Binary numbers are of two types Signed and unsigned.
Signed numbers can be represented in three ways:
- Sign magnitude form
- Signed 1's complement
- Signed 2's complement
Here we are only talking of integers not other numbers like fractions or real numbers(integers+fractions). Generally integers have decimal point fixed after the least significant number as well as fractions at their most significant number. Hence called Fixed Pointer Representation and as you have gussed the other (integers+fractions or real numbers) have floating point representation since the decimal point/radix point is not fixed. (LOL floating!)
Signing off for today! Good night.