final Object value = parameters.getValue(paramIdx);
final Sequence sequence = typeRegistry.convertToNumberSequence(type, value, isStrictSequenceNeeded());
while (sequence.hasNext())
{
final LValue rawValue = sequence.nextRawValue();
if (rawValue == null)
{
throw EvaluationException.getInstance(LibFormulaErrorValue.ERROR_INVALID_ARGUMENT_VALUE);
}
final TypeValuePair nextValue = rawValue.evaluate();
final Number number = typeRegistry.convertToNumber(nextValue.getType(), nextValue.getValue());
final BigDecimal next = NumberUtil.getAsBigDecimal(number);
if(last == null)
{