Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 3
0
 public static UInt16 Multiply(this UInt16 d, Percentage p)
 {
     return((UInt16)((Decimal)d).Multiply(p));
 }
Exemplo n.º 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);
 }
Exemplo n.º 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)));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 8
0
 public static UInt16 Divide(this UInt16 d, Percentage p)
 {
     return((UInt16)((Decimal)d).Divide(p));
 }
Exemplo n.º 9
0
 public static UInt16 Subtract(this UInt16 d, Percentage p)
 {
     return((UInt16)(d - d.Multiply(p)));
 }
Exemplo n.º 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);
 }
Exemplo n.º 11
0
 public static UInt32 Subtract(this UInt32 d, Percentage p)
 {
     return(d - d.Multiply(p));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 20
0
 public static UInt64 Add(this UInt64 d, Percentage p)
 {
     return(d + d.Multiply(p));
 }
Exemplo n.º 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));
 }