Joke Collection Website - Talk about mood - How to convert ternary and hexadecimal? Can you give an example?

How to convert ternary and hexadecimal? Can you give an example?

You must go to decimal first.

For example, 4 (decimal) = 1 1 (ternary)-the first 1 (equal to the first power of 3 * 1)+the second 1 (equal to the zeroth power of 3 * 1).

12 (decimal) =40 (ternary)-the first 4 (equal to the first power of 3 *4)+the second 0 (equal to the zeroth power of 3 *0).

As can be seen from this example, ternary is the power of three times that number, and then add up all the results. How much should I multiply it? It depends on power.

12 12 (ternary) = (cubic of 3 *1)+(cubic of 3 * 2)+(cubic of1*1)+(cubic of 3 * 2) =50.

The same is true for hexadecimal.

5432 (hexadecimal) = (3 power of 7 * 5)+(2 power of 7 * 4)+(65438 power of 7+0 power of 3)+(0 power of 7 * 2) = 1934 (decimal).

Change back.

Ternary to decimal and then to heptad.

2 1 12 1 (ternary) =205 (decimal) =4 12 (hexadecimal)

That's the reason. There may be some errors in the data. You can do the math yourself.