cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Binaries
Binaries
May 28, 2009 at 2:27am UTC
Forte
(6)
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?
May 28, 2009 at 12:39pm UTC
Bazzy
(6281)
here is how numerical bases work:
101101 = 1*2
5
+ 0*2
4
+ 1*2
3
+ 1*2
2
+ 0*2
1
+1*2
0
= 45 (decimal) = 4*10
1
+ 5*10
0
0x5A = 5*16 + 10 = 90 (dec)
This may help you:
http://www.cplusplus.com/doc/hex/
Topic archived. No new replies allowed.