Hi,
I have the following problem with CLA math. converting a positive float to int value works correctly. But converting a negative floating value to int is incorrect.
This is the code:
int i;
if (float_value <= -1) {
i=(int)float_value;
long_value+=(long)i;
float_value+= (float)i;
}
So how do I solve this?
Thanks!