0
$\begingroup$

How would you convert decimal 0.0650 to 1.15 Q format 16-bit of course? I'm kinda stuck in this for 3 days, can someone kindly help me out in this

$\endgroup$
0
$\begingroup$

Convert $0.065$ in binary with 15 digits of precision in the fractional part (rounding to the nearest such number):

$$ (0.065)_{10} \approx ( 0.000100001010010)_2$$

Multiply $(0.000100001010010)_2$ by $(2^{15})_{10}$ (i.e., remove the fractional-part separator) to obtain $(0000100001010010)_2$.

If you want it in hexadecimal, as you have asked in another question, you can convert it:

$$ (0000100001010010)_2 = (0852)_{16} $$.

| cite | improve this answer | |
$\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.