Help for this page

Select Code to Download


  1. or download this
    my $nz= -0.0;
    printf "%f\n", $nz;    # Will print "-0.00000" on some platforms
    printf "%f\n", "$nz";  # Should give "0.00000"
    
  2. or download this
    -0.000000
    -0.000000
    
  3. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    -0.000000
    -0.000000
    0.000000