Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Java - Calculating an average with two removed values.
#3
You're also dividing total by an integer by an integer so you're getting an integer back that goes into a double so it gets rounded.

You'll want to divide by 8.0 or cast it with a (double).
Reply


Messages In This Thread
Java - Calculating an average with two removed values. - by JoeTang - 2013-02-04, 07:02 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)