/// <summary> /// Creates a new CompositeIndicator such that the result will be the sum of the left and the constant /// </summary> /// <remarks> /// value = left + constant /// </remarks> /// <param name="left">The left indicator</param> /// <param name="constant">The addend</param> /// <returns>The sum of the left and right indicators</returns> public static CompositeIndicator Plus(this IUpdatable left, double constant) { var constantIndicator = new ConstantIndicator(constant.ToString(CultureInfo.InvariantCulture), constant); return(left.Plus((IUpdatable)constantIndicator)); }