Im trying to find the average of three numbers however it only rounds it to the nearest whole number. What code can i use to get the exact number?
For example at the minute it would add 2 + 3 + 2. The outcome would be 2 but i would like it to be the exact value i.e. 2.33
Mark515
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.