Пример #1
0
 public DecimalPercentage(decimal value)
 {
     this = new DecimalPercentage()
     {
         Value    = value,
         Fraction = value / new decimal(100)
     };
 }
Пример #2
0
 public static DecimalPercentage AsPercentOf(this decimal given, decimal total)
 {
     return(DecimalPercentage.FromAmounts(given, total));
 }