hexadecimal addition, what does it mean to “add 0x1000000 – 1” for example?

425 viewsMathematicsOther

hexadecimal addition, what does it mean to “add 0x1000000 – 1” for example?

In: Mathematics

4 Answers

Anonymous 0 Comments

This is basically the same as saying subtract 1 from 0x01000000 and results in the value 0x0FFFFFF basically hexadecimal is base 16, it often uses the following symbols:

Hexdec | Decimal
:–|:–
0|0
1|1
2|2
3|3
4|4
5|5
6|6
7|7
8|8
9|9
A|10
B|11
C|12
D|13
E|14
F|15

And so when you add -1 to 0x1000000 you get 0x0FFFFFF. It gets a little annoying to learn arithmetic in hexadecimal but it is easier than other bases.

You are viewing 1 out of 4 answers, click here to view all answers.