First time here? Check out the FAQ!
answered 2017-05-11 10:45:04 -0600
maybe
float outputValue = (float)sumValue / (float)num_valid;
or
float outputValue = (float)( sumValue / num_valid);