Hi
Got a question....
Here's the code:
$subtotal = ($vcart_num_rows*70);
$tax = (($sub/100)*19);
$grandtotal = ($sub+$vat);
$offer = ($total/2);
When $subtotal or $tax or the rest is echoed to the screen, i get this:
Let's say, $subtotal=70
echo'ing $subtotal: 70
echo'ing $tax: 13.3
echo'ing $grandtotal: 83.3
echo'ing $offer: 41.65
The only number with 2 decimals after the period is $offer (because it's uneven), i would like the other numbers to have 2 decimals after the period as well..
How is this done?
Thanx in advance!
thefisherman