Please help me how to convert an integer into ninary system.. and decimal
binary? well, decimal is just what we use, also called base 10, and we learned it as ...thousands hundreds tens ones tenths hundredths thousandths... respectively, these are 10^3 10^2 10^1 10^0 10^-1 10^-2 10^-3 it is identical in binary (prefix bi means 2) 32 16 8 4 2 1 .5 .25 .125 are 2^5 2^4 2^3 2^2 2^1 2^0 2^-1 2^-2 2^-3 as in decimal, we can never put the number ten as a single digit, we have to separate it over two digits by carrying it over, example 5+5 = 10; two digits in binary it's the same but with this you only have 1's and 0's because you can't have a two as a single digit, as in decimal when we have a ten we have to carry over, in binary, we also carry over: 1+ 1 = 2, can't have a 2 so we carry it over and it becomes 10, if we refer back to the binary chart, you'll see the the "ones" place normally is the same, 1, but then the "tens" place is only 2, so when we have 10 in binary it is 2+0 in decimal.
thanks!
You're welcome
Join our real-time social learning platform and learn together with your friends!