D
Dol
Hi all,
When I execute the following program, $d is set to 18 instead of 19 as
I would expect. Any ideas why this happens?
Thanks,
Dol
#!/yourpathtoperl/perl
$a = 50;
$b = 0.37;
$c = $a*$b
$d = sprintf("%.0f",$c);
print "$c\t$d\n";
When I execute the following program, $d is set to 18 instead of 19 as
I would expect. Any ideas why this happens?
Thanks,
Dol
#!/yourpathtoperl/perl
$a = 50;
$b = 0.37;
$c = $a*$b
$d = sprintf("%.0f",$c);
print "$c\t$d\n";