my $nz= -0.0; printf "%f\n", $nz; # Will print "-0.00000" on some platforms printf "%f\n", "$nz"; # Should give "0.00000"