Saturday, June 4, 2011

Re: [discussion_vu] salam

This is very simple. if you still dont understand i'll explain it.



an easy way to figure out binary is this...

Say you want to make 202 into binary, you start off with this

128, 64, 32, 16, 8, 4, 2, 1

Make each number a column.

You go from the top, 128 can go into 202... so you put a 1 under the 128 column and subtract. 202-128=74

so now we go to the next step, 64... as we can see, 64 can go into 74, so put a 1 in the 64 column. 74-64=10.

32 column... 32 cannot go into 10, so put a 0

16 column... 16 cannot go into 10 so you put a 0

8 column... 8 can go into 10, put a 1 in the 8 column... 10-8=2

4 cannot go into 2, put a 0

2 goes into 2... 2-2=0, put a 1 in the column

1 cannot go into 0, put a 0 in the column

so in the end, you should have
128, 64, 32, 16, 8, 4, 2, 1
1   ,   1,  0,  0, 1, 0, 1, 0

202 in binary is 11001010


to turn binary into decimal you just set up the column form again, and add where there's 1's

00110011

128, 64, 32, 16, 8, 4, 2, 1
   0,   0,  1,   1, 0, 0, 1, 1

1+2+16+32 = 51

Now if you happen to get a number like 400 that you want to change into binary, you'll notice that 128 can go into 400 three times, and since there's no 3 in binary, all you have to do is just add one more column to make it
256, 128, 64, 32, 16, 8, 4, 2, 1
(110010000 = 400)

Also, if you're not quite dealing with an exact 8 bit binary system (each 1 or 0 is a single bit), you can always knock off the extra 0s at the beginning, so 51 could also be 110011. But you cannot knock off zeros that are in between 1s, that would change the number entirely.  Though, you need a number of bits divisible by 8 to change binary into hex. But I won't go into that right now...


On Sat, Jun 4, 2011 at 7:11 PM, mc080402448 Fizza Kanwal <mc080402448@vu.edu.pk> wrote:
jo steps is artical mein hy whi to smaj ni aa rhy na k kesay kia hy ye.
plz koi smja day easy wording mein kindly
regards

On 6/4/11, (`*•.¸Imran Mughal¸.•*´ ) <vuimran1@gmail.com> wrote:
> its very easy you can see these articles to get concept
> http://www.is.wayne.edu/olmt/binary/page3.htm
>
> On Sat, Jun 4, 2011 at 6:19 PM, mc080402448 Fizza Kanwal <
> mc080402448@vu.edu.pk> wrote:
>
>> aoa if anyone knows how to convert decimal to binary
>> plzzzzzzzzzzzz muje b sikha den meri assignment hy.
>> its urgent
>> regards
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Virtual University of Pakistan" group.
>> To post to this group, send email to discussion_vu@googlegroups.com.
>> To unsubscribe from this group, send email to
>> discussion_vu+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/discussion_vu?hl=en.
>>
>>
>
>
> --
> **
> Imran bashir
>
> --
> You received this message because you are subscribed to the Google Groups
> "Virtual University of Pakistan" group.
> To post to this group, send email to discussion_vu@googlegroups.com.
> To unsubscribe from this group, send email to
> discussion_vu+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/discussion_vu?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan" group.
To post to this group, send email to discussion_vu@googlegroups.com.
To unsubscribe from this group, send email to discussion_vu+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/discussion_vu?hl=en.




--

Imran bashir

--
You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan" group.
To post to this group, send email to discussion_vu@googlegroups.com.
To unsubscribe from this group, send email to discussion_vu+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/discussion_vu?hl=en.

No comments:

Post a Comment

PAID CONTENT