// sum rest of the array for (; i < nSize; ++i)
fSum += pArray[i];
// If the sum is a NaN, some of the terms were empty cells, probably. // Re-calculate, carefully double fVal = fSum.get(); if (!std::isfinite(fVal))
{
FormulaError nErr = GetDoubleErrorValue(fVal); if (nErr == FormulaError::NoValue)
{
fSum = 0; for (i = 0; i < nSize; i++)
{ if (!std::isfinite(pArray[i]))
{
nErr = GetDoubleErrorValue(pArray[i]); if (nErr != FormulaError::NoValue)
fSum += pArray[i]; // Let errors encoded as NaNs propagate ???
} else
fSum += pArray[i];
}
}
} return fSum;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.