# Binary to Decimal conversion - powers

This topic is 4862 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I don't know how powers with negatives work so I need someone to explain to me how the two lines in bold below compute the results:
1*2^2   =  1*4    =    4.
1*2^1   =  1*2    =    2.
0*2^0   =  0*1    =    0.
1*2^-1  =  1*.5   =    0.5
1*2^-2  =  1*.25  =  + 0.25
-------
6.75

For example, I know 1*2^2 == 1 * (2 * 2) = 4; But I don't understand how the results are 1*.5 and 1 *.25 for the last two lines in the sample above. Thanks in advance, xeddiex

##### Share on other sites
Negative powers work by dividing by the absolute value of the power. For example 2-1 is equal 1/21 or .5. 2-2 is equal to 1/22 or .25.

##### Share on other sites
Ah, simpler than I thought. Thanks alot SiCrane.

xeddiex

• ### What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

• 14
• 12
• 29
• 11
• 44
• ### Forum Statistics

• Total Topics
634857
• Total Posts
3019662
×