I noticed that the Math.Round() returns different values depending on the platform in which it is used.
I have already read the following discussion C# rounding differently depending on platform? , but I still can't explain what happens in this simple case
Here the code:
float c = (float)0.3;
int rounded= (int)Math.Round(c * 255);
If I build at x86 rounded
is equal to 77, if I build at x64 rounded
is equal to 76.