La forma correcta de comparar un sistema. Doble a '0' (un número, int?)
Lo siento, esta podría ser una pregunta estúpida fácil, pero necesito saber para estar seguro.
Tengo estoif
expresión
void Foo()
{
System.Double something = GetSomething();
if (something == 0) //Comparison of floating point numbers with equality
// operator. Possible loss of precision while rounding value
{}
}
¿Esa expresión es igual a
void Foo()
{
System.Double something = GetSomething();
if (something < 1)
{}
}
? Porque entonces podría tener un problema al ingresarif
con p. un valor de 0.9.