After you read the article Carlo posted - and understood the floating point problem...
Use
Decimal[
^]...
for ( decimal x = 0; x <= ( decimal )1; x += ( decimal )0.1 )
{
Debug.WriteLine ( x.ToString ( ) );
if ( x == ( decimal )1 )
Debug.WriteLine ( "Equal" );
}