I am running into an issue with a large float in C# code that I need to convert to an int32
:
int test = (int)199999900f;
Test ends up being set to 199999904.
Can anyone explain what is going on here an why I gain 4 out of the conversion in that one line of code?