10-01-2007 08:34 AM - edited 03-05-2019 06:47 PM
10-01-2007 08:42 AM
What do you need to know?
10-02-2007 03:50 AM
How is the decimal number 452 converted into binary number using successive division by 2 =111000100.
2. How is the binary number 11101000111 converted into a decimal number using powers of 2 =1863
10-02-2007 04:27 AM
The second one is easier to start with
Righmost bit is one - set so add one. Next bit, multiply 1 by two, Value of bit is two, bit is set, add to the total (now three) Double the bit value for the next bit - four, the bit is set , so add four (seven) double the bit value (8), unset so add nothing (seven), next bit double to 16 - unset (seven) next bit 32 unset (seven) an carry on - I have got bored of that. I am sure you can carry on...
Converting decimal to binary, I do the reverse. In the case of 452 I look at the powers of two until one is more than half the number - 1,2,4,8,16,32,64,128,256,512 etc. In this case we have a 256, but not 512.
Thats is our first 1. Take 256 from 452 and we get 196. Next is 128 - Yup we have a number bigger than that, so next is a 1 - 11 take 128 and we get 68 - Yup 64 fits - 111 and we are left with 4. That means 32, 16 and 8 don't go so we get three 0s 111000 next up is 4, and 4 fits so we add a 1 for the 4 1110001 obviosly 2&1 don't go so we add two 0s - 111000100 Done.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide