in reply to
decimal isn't truncating
my $percent = $answers_correct / 50 * 100;
[download]
Dave.
Comment on
Re: decimal isn't truncating
Download
Code
Replies are listed 'Best First'.
Re^2: decimal isn't truncating
by
Roger
(Parson)
on May 22, 2005 at 08:39 UTC
Or simply
my $percent = $answers_correct * 2;
:-)
[reply]
[d/l]
In Section
Seekers of Perl Wisdom