different approximation of float in Wind and in Linux
when I run the following code:
I get different results if working on:
- Windows 7 and 10, gcc version: gcc (tdm-1) 5.1.0 from last MinGW was the same some years ago with previous versions: the results are 24 and 25;
- Linux, many distro, many gcc versions: the results are 25 and 25.
To me, the Windows answer should be the same as the first argument is int 5 in both cases.
Could you please give a clarification. I wasn't able to find any justification for my univ. students.
Thank you in advance
I have three comments: