コード例 #1
0
 public void KilogramsToPounds(double kg, double pounds)
 {
     Assert.Equal(pounds, UnitConverters.KilogramsToPounds(kg), 4);
 }
コード例 #2
0
 public override double ConvertFromBaseUnits(double unitsInGrams) => UnitConverters.KilogramsToPounds(unitsInGrams / 1000);
コード例 #3
0
 public override double ConvertFromBaseUnits(double numberInGrams) => UnitConverters.KilogramsToPounds(numberInGrams / 1000) * 16;