The way I convert between decimal and hexadecimal is to first convert the decimal number to binary:
664062510 = 110010101010011111100012
Then split the binary number into 16-bit (4 digit) chunks:
0110 0101 0101 0011 1111 00012
Next, convert each chunk into a hexadecimal digit:
0110 0101 0101 0011 1111 00012
6 5 5 3 F 1
Finally, put all the digits together:
664062510 = 6553F116
Chat with our AI personalities