How Convert Decimal to Octal and hexadecimal?
Quite simple – Octal is base 8, hexadecimal, base 16, decimal base 10. This means that in the units column of each base, you have to count to that number before reaching 10. In Octal 10 = 8 decimal, In hexadecimal 10 = 16 decimal. To convert, say 142, to hexadecimal: 142/16 = 8 remainder 14 142 (decimal) is 8E in hexadecimal. ABCDEF are used to denote numbers from 10 to 15 in hexadecimal. Likewise: 142/8 = 17 remainder 6 (to get equivalent of units) 17 divided by 8 = 2 remainder 1 (to get equivalent of hundreds and tens) So 216 is 142 in Octal.