Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subtracting Hexidecimal

Status
Not open for further replies.

TexFlex

Programmer
Feb 12, 2008
9
0
0
Hello everyone,

I hope I am in the right forum.

Could someone please give me the rules for subtracting hexidecimals?

Thank you.
 
They're the same as for subtracting numbers in any other base.



--
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
 
Thank you for the reply. Now I realize I maybe having a little trouble with hex. Do you know of a website that I could go to to strengthen my knowledge in hex.

Thank you
 
As Salem says arithmetic in hexadecimal is the same as in decimal.
Decimal is base 10, there are 10 symbols 0,1,2,3,4,5,6,7,8,9.
10 in decimal is 1 ten and 0 units, 11 is 1 ten and 1 unit etc…
Hexadecimal is exactly the same except its base is 16, there are 16 symbols 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F (A-F representing the numbers 10 – 15)
10 in hex is 1 sixteen and 0 units, B in hex is 0 sixteen and 11 units, 2E in hex is 2 sixteen and 14 units.
 
Thank you OlafBogus,

Now I clearly understand how hex works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top