1

The x64dbg calculator can evaluate hex expressions.

enter image description here

Is there a syntax to calculate the sum of a hex value and a decimal value? For the example in the snapshot, is it possible to treat 10 as a decimal? The expected result is 939936F59A. If it can't, what's the most convenient tool to do this kind of calculation?

1 Answer 1

1

Yes, it is.

For decimal numbers, use the syntax with the period just before the number, e.g. .10:

enter image description here

Particularly, in your case you will obtain exactly what you wanted (I omitted leading zeroes):

enter image description here

2
  • Yes, it works! How did you find it? The documentation is basically empty! Commented Nov 16, 2021 at 12:01
  • 1
    I didn't search for it, I already read the complete doc.:-) You're right, it is spare enough. Here is the link to the relevant part: Numbers. I quote from it: “All numbers are interpreted as hex by default! If you want to be sure, you can x or 0x as a prefix. Decimal numbers can be used by prefixing the number with a dot: .123=7B.” Commented Nov 16, 2021 at 12:45

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.