In a program I'm creating, I'm trying to calculate a percentage. However,
for some reason the calculation is only coming out to 1 decimal place, and I
know there's more. Using this code:
$gshare = $shareresults / $phenresults;
echo "$shareresu lts / $phenresults = $gshare";
I get the following output:
3,340,000 / 5,180,000 = 0.6
That's wrong. How can I correct this?
for some reason the calculation is only coming out to 1 decimal place, and I
know there's more. Using this code:
$gshare = $shareresults / $phenresults;
echo "$shareresu lts / $phenresults = $gshare";
I get the following output:
3,340,000 / 5,180,000 = 0.6
That's wrong. How can I correct this?
Comment