MathExchange,
I am trying to learn more about computers, and one thing I have opted to teach myself is decimal to binary, and decimal to hex conversion.
From the web, I have found tutorials on converting small numbers (e.x. 256) to hex. The general rule of thumb is to keep dividing by 16, and remember all of the remainders. Finally, the remainders correspond with numbers or letters on a chart.
But what about big numbers, and negative numbers? I can't seem to find anything on these.
Could one of you really smart people help me figure out these two examples:
1) 123,456,789
2) -44
If I can figure out the process for converting those to hex, I should be happy with this weekend's learning :)
For big numbers, you try to find the largest power of $16$ that is still smaller than your number, and see how many times that one divides your number. Then you proceed with the second largest power, and so on. For negative numbers, you can calculate the hexadecimal of the absolute value of the number, and then stick a minus sign in front of it.