Converting Decimal Numbers into Hexadecimal
To convert a decimal number into hexadecimal, divide the number repeatedly by 16 and take the remainders. The first remainder is the LSD, and the last remainder is the MSD.
Converting Octal Numbers into Decimal
To convert an octal number into decimal, calculate the sum of the powers of 8 of the number.