Anyone here good at math?
7763 cr points
Send Message: Send PM GB Post
27 / M / Davao City, Phili...
Offline
Posted 6/27/08
convert the decimal 28.75 to its binary equivalent

the reason for making this thread? nothing really....
Posted 6/27/08
28.75 = (2 ´ 101) + (8 ´ 100) + (7 ´ 10-1) + (5 ´ 10-2)
0,0 is that right? i just googled it
Posted 6/27/08

bujujutko wrote:

convert the decimal 28.75 to its binary equivalent

the reason for making this thread? nothing really....


nothing huh? can i spam it puhleaaaaasseee??
Posted 6/27/08
Choose a method of conversion

Comparison with descending powers of two and subtraction

Short division by two with remainder

Comparison with descending powers of two and subtraction

List the powers of two in a "base 2 table" from right to left. Start at 20, evaluating it as "1". Increment the exponent by one for each power. The list, to ten elements, would look like this: 512, 256, 128, 64, 32, 16, 8, 4, 2, 1

For this example, let's convert the decimal number 15610 to binary. What is the greatest power of two that will fit into 156? Since 128 fits, write a 1 for the leftmost binary digit, and subtract 128 from your decimal number, 156. You now have 28.
Move to the next lower power of two. Can 64 fit into 28? No, so write a 0 for the next binary digit to the right.

Can 32 fit into 28? No, so write a 0.
Can 16 fit into 28? Yes, so write a 1, and subtract 16 from 28. You now have 12.
Can 8 fit into 12? Yes, so write a 1, and subtract 8 from 12. You now have 4.
Can 4 (power of two) fit into 4 (working decimal)? Yes, so write a 1, and subtract 4 from 4. You have 0.
Can 2 fit into 0? No, so write a 0.
Can 1 fit into 0? No, so write a 0.

Since there are no more powers of two in the list, you are done. You should have 10011100. This is the binary equivalent of the decimal number 156. Or, written with base subscripts: 15610 = 100111002
Posted 6/27/08

love-starrs wrote:

Choose a method of conversion

Comparison with descending powers of two and subtraction

Short division by two with remainder

Comparison with descending powers of two and subtraction

List the powers of two in a "base 2 table" from right to left. Start at 20, evaluating it as "1". Increment the exponent by one for each power. The list, to ten elements, would look like this: 512, 256, 128, 64, 32, 16, 8, 4, 2, 1

For this example, let's convert the decimal number 15610 to binary. What is the greatest power of two that will fit into 156? Since 128 fits, write a 1 for the leftmost binary digit, and subtract 128 from your decimal number, 156. You now have 28.
Move to the next lower power of two. Can 64 fit into 28? No, so write a 0 for the next binary digit to the right.

Can 32 fit into 28? No, so write a 0.
Can 16 fit into 28? Yes, so write a 1, and subtract 16 from 28. You now have 12.
Can 8 fit into 12? Yes, so write a 1, and subtract 8 from 12. You now have 4.
Can 4 (power of two) fit into 4 (working decimal)? Yes, so write a 1, and subtract 4 from 4. You have 0.
Can 2 fit into 0? No, so write a 0.
Can 1 fit into 0? No, so write a 0.

Since there are no more powers of two in the list, you are done. You should have 10011100. This is the binary equivalent of the decimal number 156. Or, written with base subscripts: 15610 = 100111002

i think im leaking brain fluids from your confusing post
Posted 6/27/08
1+1=3?

do i get cookie? =3
Posted 6/27/08

KinkyHamster wrote:

i think im leaking brain fluids from your confusing post


all i did was to give you the steps as to how you should go about doing it. this kind of thing, you have to follow the steps and do it by yourself. giving you the answers defeatst the purpose. so i gave you the steps instead.
6607 cr points
Send Message: Send PM GB Post
23 / F / at the happiest p...
Offline
Posted 6/27/08
uhh whats a binary equivalent
Posted 6/27/08

love-starrs wrote:


KinkyHamster wrote:

i think im leaking brain fluids from your confusing post


all i did was to give you the steps as to how you should go about doing it. this kind of thing, you have to follow the steps and do it by yourself. giving you the answers defeatst the purpose. so i gave you the steps instead.

1. Im not the one asking
2. Even this post is confusing

5319 cr points
Send Message: Send PM GB Post
25 / F
Offline
Posted 6/27/08
do your homework on your own ^^
Posted 6/27/08 , edited 6/27/08
Hmm...I'm not sure if there is a program for it...anyway

~Locked
You must be logged in to post.