public void Add(Expression value) { value.ToDouble(); DoubleValue += value.DoubleValue; Type = "double"; Text = DoubleValue.ToString(); }
public static Expression Sum(Expression value) { if (value.Children != null) { double sum = 0; foreach (Expression child in value.Children) { sum += child.ToDouble(); } var firstChild = value.Children[0]; firstChild.Set(sum); return firstChild; } value.ToDouble(); return value; }
public void Add(Expression value) { value.ToDouble(); DoubleValue += value.DoubleValue; Type = "double"; }