You're probably storing it in a double variable. For example
double result = 0.0;
result = average(x,y);
Now result is a double which is a larger type than float.
Reputation Points: 874
Solved Threads: 352
Posting Maven
Offline 2,758 posts
since Sep 2008