Beispiel #1
0
 public void Add(Expression value)
 {
     value.ToDouble();
     DoubleValue += value.DoubleValue;
     Type = "double";
     Text = DoubleValue.ToString();
 }
Beispiel #2
0
        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;
        }
Beispiel #3
0
		public void Add(Expression value)
		{
			value.ToDouble();
			DoubleValue += value.DoubleValue;
			Type = "double";
		}