O
O.B.
In the following piece of code, the == operator is saying that the two
different float values are the same. What's going on here?
float testValueA = float.MaxValue;
float testValueB = float.MaxValue - (float)1.0;
if (testValueA == testValueB)
{
Console.WriteLine("Test Failed");
}
different float values are the same. What's going on here?
float testValueA = float.MaxValue;
float testValueB = float.MaxValue - (float)1.0;
if (testValueA == testValueB)
{
Console.WriteLine("Test Failed");
}