Jump to content

Recommended Posts

Posted

Is any one here familar with the hexadecimal system if you can you help me understand it??

 

 

Do you take the number divide by 16 the quotient is the 1st charcter and the remander is the second??

 

E.X. [math]173/16[/math] is 10 with remainder 13 so the hex number world be AD right??

Posted

Think of how we do the decimal system: hundreds, tens and units:

 

HTU

110 = 1 * 100 + 1 * 10 + 0 * 1

 

We handle hexidecimal in the same way, except we have powers of 16 instead of powers of 10 as our "bits". And instead of just going up to 9, we can use 0-9 and A-E (A = 10, E = 15). For example:

 

16 1

A E = 16 * 10 + 15 * 1 = 175 in decimal

 

Hope this helps a bit, I think the way I've worded it is a bit complex though - mainly because it's 3am and I'm quite tired ;)

Posted

To convert integers to hex, just keep dividing by 16. You will get the hex code right to left in the successive remainders.

 

For decimals keep multiply by 16 and keep takin integral part, its'll give u hex from left to right from the decimal point.

Posted
Or convert to binary, and then it's a simple conversion to get from that to hex.

 

Yes. You have to group in fours either side of decimal point and replace the group by approprite hex value.

Posted

When I was doing my computing course, I found this the easier method of the two, but it's totally up to whatever you decide. It's particularly useful when you come to do two's complement and fractional stuff.

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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.