0
$\begingroup$

I have the number 10011100010101 from base 4 and I need to conv in base 16. I wrote the number in pairs of 2 and tried to write it as such 0×16^0+1×16^1.. from left to right is it correct this way?

$\endgroup$
  • $\begingroup$ What kind of a mutated oddity is a base $4$ number with nothing but zeroes and ones? Seems like it really wants to be binary. $\endgroup$ – John Jan 26 '18 at 17:18
  • $\begingroup$ It's a 4 in this book... $\endgroup$ – Lola Jan 26 '18 at 17:20
2
$\begingroup$

$16 = 4^2$, so try splitting the number into blocks of two and convert those blocks separately

$\endgroup$
  • 1
    $\begingroup$ Thta's what I did too but I wasn't sure if it's correct,thank you. $\endgroup$ – Lola Jan 26 '18 at 17:21
0
$\begingroup$

In general you'll want to go from right to left with the blocks.

In this case, it doesn't matter whether you go left to right or right to left, but if you have an odd number of digits, you'll miss the leading zero and have to do it all again.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.