Пример #1
0
 /// <summary>Divides the Double by the specified percentage.</summary>
 /// <param name="d">
 /// The value to divide.
 /// </param>
 /// <param name="p">
 /// The percentage to divide to.
 /// </param>
 public static Double Divide(this Double d, Percentage p)
 {
     return((Double)((Decimal)d).Divide(p));
 }
Пример #2
0
 /// <summary>Divides the Single by the specified percentage.</summary>
 /// <param name="d">
 /// The value to divide.
 /// </param>
 /// <param name="p">
 /// The percentage to divide to.
 /// </param>
 public static Single Divide(this Single d, Percentage p)
 {
     return((Single)((Decimal)d).Divide(p));
 }
Пример #3
0
 public static UInt16 Multiply(this UInt16 d, Percentage p)
 {
     return((UInt16)((Decimal)d).Multiply(p));
 }
Пример #4
0
 /// <summary>Divides the Decimal by the specified percentage.</summary>
 /// <param name="d">
 /// The value to divide.
 /// </param>
 /// <param name="p">
 /// The percentage to divide to.
 /// </param>
 public static Decimal Divide(this Decimal d, Percentage p)
 {
     return(d / (Decimal)p);
 }
Пример #5
0
 /// <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)));
 }
Пример #6
0
 /// <summary>Subtracts the specified percentage to the Single.</summary>
 /// <param name="d">
 /// The value to Subtract a percentage from.
 /// </param>
 /// <param name="p">
 /// The percentage to Subtract.
 /// </param>
 public static Single Subtract(this Single d, Percentage p)
 {
     return(d - d.Multiply(p));
 }
Пример #7
0
 /// <summary>Gets the specified percentage of the Double.</summary>
 /// <param name="d">
 /// The value to get a percentage from.
 /// </param>
 /// <param name="p">
 /// The percentage.
 /// </param>
 public static Double Multiply(this Double d, Percentage p)
 {
     return((Double)((Decimal)d).Multiply(p));
 }
Пример #8
0
 public static UInt16 Divide(this UInt16 d, Percentage p)
 {
     return((UInt16)((Decimal)d).Divide(p));
 }
Пример #9
0
 public static UInt16 Subtract(this UInt16 d, Percentage p)
 {
     return((UInt16)(d - d.Multiply(p)));
 }
Пример #10
0
 /// <summary>Gets the specified percentage of the Decimal.</summary>
 /// <param name="d">
 /// The value to get a percentage from.
 /// </param>
 /// <param name="p">
 /// The percentage.
 /// </param>
 public static Decimal Multiply(this Decimal d, Percentage p)
 {
     return(d * (Decimal)p);
 }
Пример #11
0
 public static UInt32 Subtract(this UInt32 d, Percentage p)
 {
     return(d - d.Multiply(p));
 }
Пример #12
0
 /// <summary>Subtracts the specified percentage to the Int16.</summary>
 /// <param name="d">
 /// The value to Subtract a percentage from.
 /// </param>
 /// <param name="p">
 /// The percentage to Subtract.
 /// </param>
 public static Int64 Subtract(this Int64 d, Percentage p)
 {
     return(d - d.Multiply(p));
 }
Пример #13
0
 /// <summary>Adds the specified percentage to the Decimal.</summary>
 /// <param name="d">
 /// The value to add a percentage to.
 /// </param>
 /// <param name="p">
 /// The percentage to add.
 /// </param>
 public static Decimal Add(this Decimal d, Percentage p)
 {
     return(d + d.Multiply(p));
 }
Пример #14
0
 /// <summary>Adds the specified percentage to the Single.</summary>
 /// <param name="d">
 /// The value to add a percentage to.
 /// </param>
 /// <param name="p">
 /// The percentage to add.
 /// </param>
 public static Single Add(this Single d, Percentage p)
 {
     return(d + d.Multiply(p));
 }
Пример #15
0
 /// <summary>Gets the specified percentage of the Single.</summary>
 /// <param name="d">
 /// The value to get a percentage from.
 /// </param>
 /// <param name="p">
 /// The percentage.
 /// </param>
 public static Single Multiply(this Single d, Percentage p)
 {
     return((Single)((Decimal)d).Multiply(p));
 }
Пример #16
0
 /// <summary>Divides the Int32 by the specified percentage.</summary>
 /// <param name="d">
 /// The value to divide.
 /// </param>
 /// <param name="p">
 /// The percentage to divide to.
 /// </param>
 public static Int32 Divide(this Int32 d, Percentage p)
 {
     return((Int32)((Decimal)d).Divide(p));
 }
Пример #17
0
 /// <summary>Adds the specified percentage to the Double.</summary>
 /// <param name="d">
 /// The value to add a percentage to.
 /// </param>
 /// <param name="p">
 /// The percentage to add.
 /// </param>
 public static Double Add(this Double d, Percentage p)
 {
     return(d + d.Multiply(p));
 }
Пример #18
0
 /// <summary>Adds the specified percentage to the Int32.</summary>
 /// <param name="d">
 /// The value to add a percentage to.
 /// </param>
 /// <param name="p">
 /// The percentage to add.
 /// </param>
 public static Int32 Add(this Int32 d, Percentage p)
 {
     return(d + d.Multiply(p));
 }
Пример #19
0
 /// <summary>Gets the specified percentage of the Int32.</summary>
 /// <param name="d">
 /// The value to get a percentage from.
 /// </param>
 /// <param name="p">
 /// The percentage.
 /// </param>
 public static Int32 Multiply(this Int32 d, Percentage p)
 {
     return((Int32)((Decimal)d).Multiply(p));
 }
Пример #20
0
 public static UInt64 Add(this UInt64 d, Percentage p)
 {
     return(d + d.Multiply(p));
 }
Пример #21
0
 /// <summary>Subtracts the specified percentage to the Decimal.</summary>
 /// <param name="d">
 /// The value to Subtract a percentage from.
 /// </param>
 /// <param name="p">
 /// The percentage to Subtract.
 /// </param>
 public static Decimal Subtract(this Decimal d, Percentage p)
 {
     return(d - d.Multiply(p));
 }