Пример #1
0
 public double ParseTo(string measurement, UnitDefinition to, double world = 1.0)
 {
     return(to.ConvertFromInternal(Parse(measurement, world), world));
 }
Пример #2
0
 public double ConvertTo(double value, UnitDefinition unit_definition, double world = 1.0)
 {
     return(unit_definition.ConvertFromInternal(ConvertToInternal(value, world), world));
 }
Пример #3
0
 public override double ConvertFromInternal(double value, double world = 1.0)
 {
     return(unit_definition.ConvertFromInternal(value, world) / multiplier);
 }