示例#1
0
 public double FromBaseUnit(double valueInBaseUnit)
 {
     return(IsBasicUnit
 ? valueInBaseUnit
 : ReferencedUnit.FromBaseUnit(valueInBaseUnit / Coefficient));
 }
示例#2
0
 public double ToBaseUnit(double valueInThisUnit)
 {
     return(IsBasicUnit
 ? valueInThisUnit
 : ReferencedUnit.ToBaseUnit(Coefficient * valueInThisUnit));
 }