Check out Decimal, Hex, octal and binary number inter conversion