taking the median of an Array

solved!=]
Last edited on
I`m not sure but i think the datapoint`(s) and data[] should be of type double. Dividing the sum of integers will not produce the decimal component
You could also cast one part of it to a double, e.g.
/*top*/ / static_cast<double>(2);
2.0 is a lot less typing :)
i tried just using the 2.0 and it gave me errors. ill try and make things double, and see what happens.
Topic archived. No new replies allowed.