What is a hexadecimal/octal number?

//this is probably a very stupid question

I'm still on the basics tutorials, stuck on Constants. Everything was OK up until now. No one told me I had to be good at math T.T
0x4b
0113
75
Can someone link me to a site that will show me what it means or briefly explain without any overly complicated words.

or I could skip it but I'm afraid it might come back and slap me in the face later on and I'll be even more confused than I already am.

1
2
3
75         // decimal
0113       // octal
0x4b       // hexadecimal  
Did you look on this site?
http://www.cplusplus.com/doc/hex/
Octal and hexadecimal are just number systems, like decimal. Octal uses the digits 0-7, which is base 8, hexadecimal uses 0-9 and A-F, which is base 16 and decimal, which is the number system commonly used in everyday life, uses the digits 0-9. That is base 10.

At this stage in learning C++ it's not too important. If you ever need to do a conversion it's better to just use windows calculator or find a hex converter online.
Last edited on
Thanks so much. It makes a lot of sense now!
Topic archived. No new replies allowed.