Answer the question
In order to leave comments, you need to log in
Why are the least significant bits ignored when converting from a fixed-point number to a floating-point number?
I have a 64bit fixed point number that needs to be converted to a floating point number:
unsigned long fixed = 0x8000000000000001; // Q4.60
double floating = fixed/pow(2,60);
printf("%.100e\n",floating);
/* Вывод: 8.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+00 */
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question