Rounding to 2 Decimal Places
Posted: Wed Sep 07, 2011 5:35 am
I'm really struggling to see how to do this. The following number is being posted:
As of <span id="theTime"></span> GMT, the gold price per ounce</a> in the UK is £'.$results['ounce_price'];
I want 'ounce_price' to be rounded to decimal places but can't figure how to do this.
Does 'round($results,2) ' mean anything in this situation? Where can I place the code. I'm a little confused, any help would be hugely appreciated!
As of <span id="theTime"></span> GMT, the gold price per ounce</a> in the UK is £'.$results['ounce_price'];
I want 'ounce_price' to be rounded to decimal places but can't figure how to do this.
Does 'round($results,2) ' mean anything in this situation? Where can I place the code. I'm a little confused, any help would be hugely appreciated!