I recently obtained HDF5 data files which contain integer arrays that show up in hexadecimal format upon reading in julia (using HDF5 package). To get the numbers in the decimal format, I learned this trick from a colleague:
julia> a = 0x000038f9
0x000038f9
julia> b = a + 0
14585
I am trying to understand what Julia is doing here. Why/how the result of addition between a hexadecimal format number and decimal format number is a decimal format number. The official julia documentation doesn't seem to say much about this behavior. Is there a more transparent way to perform this conversion? Thank you.