public DecimalPercentage(decimal value) { this = new DecimalPercentage() { Value = value, Fraction = value / new decimal(100) }; }
public static DecimalPercentage AsPercentOf(this decimal given, decimal total) { return(DecimalPercentage.FromAmounts(given, total)); }