I agree with most of the others. This is module madness if we need a module to do division.
I will ad this to what the others have said though. Be careful of divide by zero. You may want to do something like this.
And then check $percent for undef.my $percent = ($second_number ? $first_number/$second_number : undef);
In reply to Re: Percentage module in Math::?
by KurtSchwind
in thread Percentage module in Math::?
by ewhitt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |