I tried to cast a float value to an int, using this line of C# code:
int x = (int)(10.0f * 0.9f);
For some reasons, x now has the value 8, and I really don't see why. Can somebody help?
I tried to cast a float value to an int, using this line of C# code:
int x = (int)(10.0f * 0.9f);
For some reasons, x now has the value 8, and I really don't see why. Can somebody help?