Monday, December 12, 2011

What is the base 16 number for the floating point value of 1000000.11?

I know that the first part is 40 but I don't know how to do the part after the decimal. I would appreciate any help, and please explain how you got the answer.|||What?



Is that number a base 10 number? Or is it a base 2 number? By "first part" do you mean the integer portion? Forty doesn't work for either.



+add

Oh, I see. 40 base 16 = 2^6,, so that's correct.



Now, here's the easy part.

In a place value number system, the positions to the right are negative powers of that base (just like in base 10)

Thus

0.11

is 2^(-1) + 2^(-2)

1/2 + 1/4

3/4

Now you want this in base 16, right?

You want to find k in

0.k

where the k is in the 1/16 postion,

3/4 = 12/16

thus k = C, (12 in base 16)



Your number is

40.C (base 16)

No comments:

Post a Comment