fork(1) download
  1. <?php
  2. $x = 1.0E-7;
  3. echo $x."\n";
  4. echo sprintf( "%f\n" , $x );
  5. echo sprintf( "%1.100f\n" , $x );
Success #stdin #stdout #stderr 0.01s 20568KB
stdin
Standard input is empty
stdout
1.0E-7
0.000000
0.00000009999999999999999547481118258862586856139387237
stderr
PHP Notice:  sprintf(): Requested precision of 100 digits was truncated to PHP maximum of 53 digits in /home/iJXAVR/prog.php on line 5