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