fork download
  1. <?php
  2. $number = number_format(1.0E-2, 20);
  3. $number = rtrim($number, '0');
  4. var_dump($number); // string(7) "0.00001"
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
string(22) "0.01000000000000000021"