float myfloat = 0.7f;
byte test = (byte)(myfloat * 10);
The result of test is 6. That is really weird. Could someone explain what happen here?
float myfloat = 0.7f;
byte test = (byte)(myfloat * 10);
The result of test is 6. That is really weird. Could someone explain what happen here?