Hi all
We met some problems about floating operation in DM37xx with WinCE6.
Below is the application example:
float num1 =0;
int num2 = 0;
int num3 = 0;
num1 = 24.9f;
num2 = (Int32)num1;
num3 = Convert.ToInt32(num1);
And the result of num2 and num3 is the same. the calculation result is 25.
PS: num2 should be 24 instead of 25....
BTW, we also have some experiments in other WinCE version and platform as follows:
WinCE 6 | WinCE 7 | |
DM37xx |
num2=25 num3=25 |
not test |
AM335x |
num2=24 num3=25 |
num2=24 num3=25 |
Any comment , please advise.
Thanks for your help.