/// <summary>Adds the specified percentage to the Int64.</summary> /// <param name="d"> /// The value to add a percentage to. /// </param> /// <param name="p"> /// The percentage to add. /// </param> public static Int16 Add(this Int16 d, Percentage p) { return((Int16)(d + d.Multiply(p))); }
/// <summary>Subtracts the specified percentage to the Int64.</summary> /// <param name="d"> /// The value to Subtract a percentage from. /// </param> /// <param name="p"> /// The percentage to Subtract. /// </param> public static Int16 Subtract(this Int16 d, Percentage p) { return((Int16)(d - d.Multiply(p))); }