Let us say I have
float val = 99999.9;
When I do this:
int val2 = val*100;
val2 is equal to 9999989 in Visual Studio 2010.
However, if I do the same with other compilers (like GCC for example), the result would be val2 = 9999990.
How to explain such a difference ?
 
    