I need to convert the decimal number 1024 to an hexadecimal number, I do this using these steps http://www.wikihow.com/Convert-from-Decimal-to-Hexadecimal#steps
However, whenever I divide 1024 by 16 I get as result the integer 64, now I'm kind of stuck as how to continue from here since every step from hereon onwards will just be an endless loop (*16, /16, *16, etc).
My math is really bad so a detailed explanation would be greatly appreciated!
Using the first procedure: 1024 / 16 = 64, exactly, so no remainder. So we write a 0.
64 / 16 = 4, no remainder, so we write a 0.
4 / 16 = 0, remainder 4, so we have (the digits in reverse order, as said:) 1024 (decimal) = 400 in hexadecimal.