Binaries

I don't really get binaries, can someone explain what it is?

Say for example, how would you make 101101 in base 2 to be equivalent [blank] in base 10? Or 5A in base 16 to be equivalent to [blank] in base 10?
here is how numerical bases work:
101101 = 1*25 + 0*24 + 1*23 + 1*22 + 0*21 +1*20 = 45 (decimal) = 4*101 + 5*100

0x5A = 5*16 + 10 = 90 (dec)

This may help you: http://www.cplusplus.com/doc/hex/
Topic archived. No new replies allowed.