unsigned long l;
f=10000 * 9999.99; // result f=9.99999e+007
l=f; // result l=99999904 !!
This is a Bug or not?
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?
Please see the description under:
View all questions in Keil forum