I have two numbers which I want to do simple addition math with.
Dec / HexNumber 1 is:
67890123456789012345 / 3AE2A2B962F52DF79
Number 2 is:
35000000000000 / 1FD512913000
If I add decimal values of nr.1 and nr.2 the result is:
67890123456789012345 + 35000000000000 =
67890158460000000000When I convert this decimal value to hex I get as result:
3AE2A4B6C0147D800Now I try the same thing but only using the hex values. I use 'bc' tool on Linux for this calculation:
bc 1.07.1
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
obase=16;ibase=16
3AE2A2B962F52DF79+1FD512913000
3AE2A4B6B41E40F79
As you see the result differs from the 1th method.
3AE2A4B6C0147D800 !=
3AE2A4B6B41E40F79Then I thought I check online with any of the available hex calculators <https://www.calculators.tech/hex-calculator>
I enter HexValueA=3AE2A2B962F52DF79 plus (+) HexValueB=1FD512913000 and the
Result =
3AE2A4B6B41E40000[/color]
This same result was output by another online hexcalc (
https://purecalculators.com/de/hex-calculator)
I got three different results. What the #!R(T$F2M?!?