fork(4) download
  1. sub two {
  2. my $two = 0;
  3. for ^20 {
  4. $two += 0.1;
  5. }
  6. return $two;
  7. }
  8.  
  9. my $two = two;
  10. printf "Variable two = %.15f\n", $two;
  11. my $four = ceiling $two + $two;
  12. printf "two + two = %.15f\n", $four;
  13.  
Success #stdin #stdout 1.04s 74624KB
stdin
Standard input is empty
stdout
Variable two = 2.000000000000000
two + two = 4.000000000000000