13-07-2010, 04:58 PM
Does rule 13.3 permit testing a floating point expression against 0.0?
If not, how is this test any different than?
Or does 13.3 not permit the second example either?
Code:
void f( float flt )
{
if( flt == 0.0 )
{}
}
If not, how is this test any different than
Code:
void f( float flt )
{
if( !flt )
{}
}
Or does 13.3 not permit the second example either?