I am having a problem in a perl script that I can't seem to find an
answer for..

The $cost and $retail vars come from another part of the script and
would be something like 000134.345 and 000220.202 respectively..

I an then trying to use these values in a calculation like this..

$profit = ($retail - $cost) / $retail * 100;

But I get the following error..

../avgprofit.pl...