fork download
  1. <?php
  2. $a = 1.2;
  3. $b = 1.0;
  4. $c = 0.2;
  5.  
  6. var_dump($a - $b == $c);
  7. var_dump($a * 10 - $b * 10 == $c * 10);
  8. ?>
Success #stdin #stdout 0.02s 82560KB
stdin
Standard input is empty
stdout
bool(false)
bool(true)