Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Education > Math Undergrad > decimal to bina...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 5181 of 5601
Post > Topic >>

decimal to binary conversion

by brendanmenezes <brendanmenezes@[EMAIL PROTECTED] > Jun 23, 2008 at 05:40 PM

dear sir im trying to do the theory of decimal to binary conversion
based on the fact that a decimal number may be represented by:
d= a n *  2 ^n + a n-1 * 2 ^n-1 + ....a 1 *  2 ^1 + a 0 *  2 ^0( note
a n is a with a subscript 1)

if we divide  d by 2  we get

d / 2= a n  * 2 ^n-1 + a n-1  * 2 ^n-2 + .....+a 1 * 2 ^0


i am attempting to put values into the variables
6 = a 1 * 2 ^1 + a 0 * 2 ^0   where n=1
   = 3 1 * 2 ^1 + a 0 * 2 ^0 (note 3 1 is not the number 31 but 3 with
a subscript 1)
6 =6+ a 0  2 ^0............................................this is my
doubt is the a0 2 ^0 correct here what value should a 0
have is it 3??or is it equal to 1

6/2= a n * 2 ^n-1 + a n-1* 2 ^n-2+ a 1*  2 ^0
     =3 1 * 2  ^n-1  where n=1
  3 =3 1 * 2  ^0

i.e   a 1 2 ^0

 the above theory is for the following type of problem
eg convert the decimal number 19 to binary
19/2           remainder
9/2             1
4/2             1
2/2             0
2/2             0
0                0
 




 3 Posts in Topic:
decimal to binary conversion
brendanmenezes <brenda  2008-06-23 17:40:40 
Re: decimal to binary conversion
Anon <anon@[EMAIL PROT  2008-06-23 22:14:06 
Re: decimal to binary conversion
Paul Sperry <plsperry@  2008-06-24 02:22:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 19:04:40 CST 2008.