This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Floating point bug !

float f;
unsigned long l;

f=10000 * 9999.99; // result f=9.99999e+007
l=f; // result l=99999904 !!

Parents
  • "Any reply?"

    If you have support (ie, if you paid for the product), you should contact Keil support direct.

    To me, it looks like just a rounding error - which is inherent in any floating-point implementation!

    Do your results fall within the error limits specified in the Manual?

Reply
  • "Any reply?"

    If you have support (ie, if you paid for the product), you should contact Keil support direct.

    To me, it looks like just a rounding error - which is inherent in any floating-point implementation!

    Do your results fall within the error limits specified in the Manual?

Children