in reply to Integer vs Float during addition

According to Perl Cookbook, Perl interpolates the floating-point numbers in stings using the "%.15g" format; and
$str1 = 0.00; print "str1 $str1\n";
is equal to
printf "str1 %.15g\n", 0.00;
and prints the same
str1 0
. Updated to look cleaner.