How can I make a variable goto only one decimal place. Example: $average = 10/3; $average = 3.3 not 3.33333333333...... Thanks for any help on what I'm sure is a very basic question.
if it is for printing/ echoing then use
sprintf ("%01.1f", $average);// 3.3