0
$\begingroup$

Convert $66.25$ to hexadecimal

I am finding it easier to convert from binary to hexadecimal so I start with writing it in binary which is: $1000010.01$ now to convert to hexadecimal we take each $4$ bits and sum it, but what about the numbers to the right of the radix point?

$\endgroup$
2
  • 5
    $\begingroup$ You do the same, leading to the grouping $(0100)(0010){.}(0100)$. $\endgroup$ – Lutz Lehmann Dec 30 '16 at 12:50
  • 1
    $\begingroup$ However, $66.25=42.4_{16}$. $\endgroup$ – Bernard Dec 30 '16 at 13:00
1
$\begingroup$

...what about the numbers to the right of the radix point?

You simply group them into groups of four digits, just the same as you will group digits to the left of the radix point, and translate each group of four binary digits into a single hexadecimal digit.

With digits to the left, you include leading zeroes as necessary to complete the groupings of four digits. With digits to the right, include trailing zeroes as necessary.

I'll work a different problem, leaving your particular example ($66.25$) for you to do yourself:

$87.375$

In binary:

$1010111.011$

With groupings of four binary digits each:

$(0101)(0111).(0110)$

Converted to hexadecimal:

$57.6$

$\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.