fork(7) download
  1. <?php
  2. echo number_format(0.65999, 2, '.', ''); // 0.66, Округлило
  3. echo "\n";
  4. echo intval(0.65999 * 100) / 100; // 0.65, Не округлило
  5. echo "\n";
  6. echo intval(0.29 * 100) / 100; // 0.28, Округлило
Success #stdin #stdout 0s 82560KB
stdin
Standard input is empty
stdout
0.66
0.65
0.28