-2
$\begingroup$

I'm converting hex ( in positional fractions) to decimal

question : 0x3c.e8

my attempt: $3*16^1 + 12*16^0$ yields $60$

$ 3c$ = $ 60 $ in decimal so i know its 60.

then $.e8 *10 $ (since I want base ten) = $232$

my question is do I just say 60.232?

$\endgroup$

closed as off-topic by David Richerby, Luke Mathieson, Evil, Juho, vonbrand Oct 27 '15 at 19:45

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be about computer science, within the scope defined in the help center." – David Richerby, Luke Mathieson, Evil, Juho, vonbrand
If this question can be reworded to fit the rules in the help center, please edit the question.

  • $\begingroup$ 3C.E8 = 0x3C + 0xE8 / 0x100 = 60 + 232/256 = 60.90625 $\endgroup$ – TEMLIB Oct 26 '15 at 19:26
  • $\begingroup$ how do you know to divide by 256? $\endgroup$ – learnmore Oct 26 '15 at 19:42
3
$\begingroup$

Hint:

The respective weights of the hex digits are (in decimal)

$$16,1,\frac1{16},\frac1{256},$$

hence

$$3\cdot 16+12\cdot1+\frac{14}{16}+\frac{8}{256}.$$

$\endgroup$

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