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;
}