CSReportDll.cReportCompiler.resultAverage C# (CSharp) Method

resultAverage() private method

private resultAverage ( cReportFormulaInt fint ) : double
fint cReportFormulaInt
return double
        private double resultAverage(cReportFormulaInt fint)
        {
            if (fint.getVariables().count() == 0) 
            { 
                return 0; 
            }
            double sum = (double)fint.getVariables().item(C_AVERAGESUM).getValue();
            double count = (double)fint.getVariables().item(C_AVERAGECOUNT).getValue();
            return sum / count;
        }