Help for this page

Select Code to Download


  1. or download this
    my $num1 = 0.29;
    my $num2 = 50;
    my $num3 = $num1 * $num2;
    print "num3=$num3\n"; # is '14.5'
    
  2. or download this
    my $num4 = sprintf ("%.64f", $num7);
    
  3. or download this
    my $num1 = 0.29;
    my $num2 = sprintf ("%.64f", $num1);
    ...
    num8=14.499999999999998223643160599749535322189331054687500000000...
    num9=14.5
    num10=14.50000000000000000000000000000000000000000000000000000000...