How do i define a variable to 2 decimal places?
im using the calculation
$GrandTotal = $totalcost * 1.175;
But its displaying it to 4,
i have tried
$GrandTotal = 0.00;
But this doesnt have any effect
Please Help!!
$GrandTotal = round($totalcost * 1.175, 2);
Thanks Dood!