• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 378
  • Last Modified:

Hexadecimal addtion

Hi, this is a hexadecimal addtion.

Hex:

   3 A E
+ 1 F 5
  --------
   5 A 3


looking at the addtion above, if you add E and 5 why does the number become 13?

I thought , E = 14 thus it should be 14+5 = 19.

but I guess I'm wrong. can you please explain.
0
bt1942
Asked:
bt1942
  • 3
  • 2
  • 2
  • +2
4 Solutions
 
John HurstBusiness Consultant (Owner)Commented:
Well,  14+5 decimal = 19 decimal = 3 Hex and carry the one (i.e. 13 Hex). Go from there. ... T
0
 
hongjunCommented:
Stage 1:

  3 A E
+ 1 F 5
  -----

Stage 2:

    1
  3 A E
+ 1 F 5
  -----
      3

Stage 3:

  1 1
  3 A E
+ 1 F 5
  -----
    A 3

Stage 4:

  1 1
  3 A E
+ 1 F 5
  -----
  5 A 3
0
 
bt1942Author Commented:
thinkpads_user// Hi, how did you get 13 hex?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
hongjunCommented:
Explanation to my above (Note all are in hexa):

Stage 1:

E + 5 = 13
So we carry "1" to the next stage

Stage 2:

1 + A + F = B + F = 1A
So we carry "1" to the next stage

Stage 3:

1 + 3 + 1 = 5


hongjun
0
 
John HurstBusiness Consultant (Owner)Commented:
15 = F, 16 = 10H, 17 = 11H, 18 = 12H, 19 = 13H
.... T
0
 
hongjunCommented:
Ya..

E + 5 = F + 4 = 10 + 3

So we carry 1 and then leave the 3 there.
0
 
PaulHewsCommented:
>looking at the addtion above, if you add E and 5 why does the number become 13?

Because hex 13 is dec 19

Where decimal values "roll over" to the next power at 10, hexadecimal rolls over at 16.

One in the 16s place and 3 in the 1s place.
0
 
WaterStreetCommented:
Here is a way to visualize it.

Hex-E-Plus-5.gif
0
 
bt1942Author Commented:
Thanks for your help.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now