Example #1
0
 private string ExtractAbbreviation(UnitHolder u)
 {
     return((u.Prefix?.Abbreviation ?? "") + u.Unit.GetAbbreviation(u.Dimension));
 }
Example #2
0
 private double Multiply(UnitHolder u, double value, uint dimension)
 {
     return(value * u.Unit.CalculateToRawValue(1d, u.Dimension * dimension) * (u.Prefix?.Factor ?? 1d));
 }