hello there :)
var a : float = System.Math.Round(1.23987, 2);
var b : float = System.Math.Round(1.241, 2);
if(a == b);
{
Debug.Log(a+" = "+b);
}
if(a != b);
{
Debug.Log(a+" != "+b);
}
in log i can see 1.24 = 1.24 and 1.24 != 1.24 at the same time. why is that?
↧