double myFloat = 8000000.0; // 32-bit doubles

if(myFloat == 8000000.2)     // value will be rounded
  doSomething();             // this line will be executed