Sign in to follow this  
DMoney

HEXADECIMAL HELP

Recommended Posts

To anybody that is out there that can please help me. I am a newbie to C++ and I am needing help understanding hexadecimal so that it will help me with understanding memory addresses better. Does anybody out there know any good tutorials so that I can educate myself further????? THANKS, D$

Share this post


Link to post
Share on other sites
Hexadecimal is just the base 16 number system.

Given a positive integer b, all numbers given by the sequence of n digits <Di> can be represented by the sum:

D0 * b0 + D1 * b1 + D2 * b2 + ... + Dn-1 * bn-1

Our normal number system is the decimal system for which b = 10. One interpretation of b is the number of unique digits numbers can be composed of, including zero. Thus, in hexadecimal or base 16, there are 16 unique digits rather than 10 as in decimal. These digits are thus:

0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F

So, the hexadecimal number F32A is equivalent to this sum in decimal:

10 * 1 + 2 * 16 + 3 * 256 + 15 * 4096 = 62250.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this