In this post, I will try to explain different representations of numbers in both binary and decimal system. Decimal System Any number can be represented in the sum of multiples of powers of 10 Base 10 system, needs numerals (0-9) Standard system for denoting numbers Binary System Any number can be represented in the sum of multiples of powers of 2 Base 2 system, needs numerals (0,1) Machine level Integers An integer is a number that is written without any fractional part, it can be positive, negative or zero. Let us represent an integer 261 in both decimal and binary system 261 = 2*(10^2) + 6*(10^1) + 1*(10^0) 261 = 1*(2^8) + 0*(2^7) + 0*(2^6) + 0*(2^5) + 0*(2^4) + 0*(2^3) + 1*(2^2 ) + 0*(2^1) + 1*(2^0) 1 0000010 1 MSB = Most Significant Bit ( Red ) LSB = Least Significant Bit ( Blue ) What about Negative Integers? In the decimal system, we use the "-" symbol to distinguish between positive and negative numbers, wherea
Undergrad at IIITBH