Probably yes, many experts or even novices may know how numbers can be represented differently in computer science, but i would still like to open this discussion for better understanding….
we know there are decimal , Hexadecimal , Binary representation for the number system , so if we look closely its the same set of numbers being represented as different multiples with the basic set as decimals which is base 10.
Example :
(123) Base 10 : – Its a decimal representation.
Similarly there are other representations:
(1100) Base 2 : Binary representation of (12) Base 10 [1 * 2^3 + 1 * 2^2 + 0 * 2^1 + 0 * 2^0]
(AB) Base 16 : Hexadecimal representation for (171) Base 10 [10 * 16^1 + 11 * 16^0]
Read full article from Do you know how number system can be represented in different ways in CS ???? | Programing For DataStructures
No comments:
Post a Comment