in reply to Re^2: increment a hex number
in thread increment a hex number

Like the others said.  BTW, the same arithmetic principle applies to decimal numbers, too:

30000 + 10000 ------- 40000

Or any other radix.