in reply to decimal isn't truncating

my $percent = $answers_correct / 50 * 100;

Dave.

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;

    :-)