Part Number: TMS320F28335
Tool/software: TI C/C++ Compiler
Hello,
I am having problems with operation results. The operations involve are multiplications and divisions. The result seems to be correct if you watch it in expressions window but it is not if you cast the value and you check memory browser.
I have simplified the operations only to show the problem.
int c = 66, d = 800;
float a;
a=(c/1.1)*(d/d);
The result as appears in expressions window is 60, but in memory browser is 0x426FFFFF which is 59.999999.
I guess that this is because the floating point but if I use the numbers directly the result is correct.
How should I do the operations?
Thank you,
Paloma