Hello Monks,
The following code:
my $result = 4.25 / 1200;
Yields:
0
How do I make $result contain:
0.0035417
I tried:
$result = sprintf "0.7f", 4.25 / 1200;
That didn't work.
In reply to Dividing and result of zero. by dbmathis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |