Rounding to 1 decimal place.
807598Dec 14 2005 — edited Dec 14 2005Hello again.
I have a method called "findTheAverage" which takes in an array of integers as a parameter and then calculates and returns the average as a float.
What I want to do now though is create another method called "roundTheAverage" which takes in the float average variable from the previous method, rounds it to one decimal place, and then returns it as a float called roundedAverage.
Could anybody help me in achieving this?
Thanks.