diff --git a/UnitsNet/GeneratedCode/UnitClasses/Density.g.cs b/UnitsNet/GeneratedCode/UnitClasses/Density.g.cs index c61d33c095..bc63e281cf 100644 --- a/UnitsNet/GeneratedCode/UnitClasses/Density.g.cs +++ b/UnitsNet/GeneratedCode/UnitClasses/Density.g.cs @@ -98,7 +98,7 @@ public static DensityUnit BaseUnit /// public double KilogramsPerCubicCentimeter { - get { return _kilogramsPerCubicMeter*0.00000001; } + get { return _kilogramsPerCubicMeter*1e-6; } } /// @@ -114,7 +114,7 @@ public double KilogramsPerCubicMeter /// public double KilogramsPerCubicMillimeter { - get { return _kilogramsPerCubicMeter*0.000000000001; } + get { return _kilogramsPerCubicMeter*1e-9; } } /// @@ -154,7 +154,7 @@ public double PoundsPerCubicInch /// public double TonnesPerCubicCentimeter { - get { return _kilogramsPerCubicMeter*0.00000000001; } + get { return _kilogramsPerCubicMeter*1e-9; } } /// @@ -170,7 +170,7 @@ public double TonnesPerCubicMeter /// public double TonnesPerCubicMillimeter { - get { return _kilogramsPerCubicMeter*0.000000000000001; } + get { return _kilogramsPerCubicMeter*1e-12; } } #endregion @@ -187,7 +187,7 @@ public static Density Zero /// public static Density FromKilogramsPerCubicCentimeter(double kilogramspercubiccentimeter) { - return new Density(kilogramspercubiccentimeter*100000000); + return new Density(kilogramspercubiccentimeter*1e+6); } /// @@ -203,7 +203,7 @@ public static Density FromKilogramsPerCubicMeter(double kilogramspercubicmeter) /// public static Density FromKilogramsPerCubicMillimeter(double kilogramspercubicmillimeter) { - return new Density(kilogramspercubicmillimeter*1000000000000); + return new Density(kilogramspercubicmillimeter*1e+9); } /// @@ -243,7 +243,7 @@ public static Density FromPoundsPerCubicInch(double poundspercubicinch) /// public static Density FromTonnesPerCubicCentimeter(double tonnespercubiccentimeter) { - return new Density(tonnespercubiccentimeter*100000000000); + return new Density(tonnespercubiccentimeter*1e+9); } /// @@ -259,7 +259,7 @@ public static Density FromTonnesPerCubicMeter(double tonnespercubicmeter) /// public static Density FromTonnesPerCubicMillimeter(double tonnespercubicmillimeter) { - return new Density(tonnespercubicmillimeter*1000000000000000); + return new Density(tonnespercubicmillimeter*1e+12); } #if !WINDOWS_UWP diff --git a/UnitsNet/Scripts/UnitDefinitions/Density.json b/UnitsNet/Scripts/UnitDefinitions/Density.json index 42134e1aa0..0782aeeacb 100644 --- a/UnitsNet/Scripts/UnitDefinitions/Density.json +++ b/UnitsNet/Scripts/UnitDefinitions/Density.json @@ -7,8 +7,8 @@ { "SingularName": "KilogramPerCubicMillimeter", "PluralName": "KilogramsPerCubicMillimeter", - "FromUnitToBaseFunc": "x*1000000000000", - "FromBaseToUnitFunc": "x*0.000000000001", + "FromUnitToBaseFunc": "x/1e-9", + "FromBaseToUnitFunc": "x*1e-9", "Localization": [ { "Culture": "en-US", @@ -19,8 +19,8 @@ { "SingularName": "KilogramPerCubicCentimeter", "PluralName": "KilogramsPerCubicCentimeter", - "FromUnitToBaseFunc": "x*100000000", - "FromBaseToUnitFunc": "x*0.00000001", + "FromUnitToBaseFunc": "x/1e-6", + "FromBaseToUnitFunc": "x*1e-6", "Localization": [ { "Culture": "en-US", @@ -47,8 +47,8 @@ { "SingularName": "PoundPerCubicInch", "PluralName": "PoundsPerCubicInch", - "FromUnitToBaseFunc": "x*27679.904710191", - "FromBaseToUnitFunc": "x/27679.904710191", + "FromUnitToBaseFunc": "x/3.6127298147753e-5", + "FromBaseToUnitFunc": "x*3.6127298147753e-5", "Prefixes": [ "Kilo" ], "Localization": [ { @@ -75,8 +75,8 @@ { "SingularName": "TonnePerCubicMillimeter", "PluralName": "TonnesPerCubicMillimeter", - "FromUnitToBaseFunc": "x*1000000000000000", - "FromBaseToUnitFunc": "x*0.000000000000001", + "FromUnitToBaseFunc": "x/1e-9", + "FromBaseToUnitFunc": "x*1e-12", "Localization": [ { "Culture": "en-US", @@ -87,8 +87,8 @@ { "SingularName": "TonnePerCubicCentimeter", "PluralName": "TonnesPerCubicCentimeter", - "FromUnitToBaseFunc": "x*100000000000", - "FromBaseToUnitFunc": "x*0.00000000001", + "FromUnitToBaseFunc": "x/1e-9", + "FromBaseToUnitFunc": "x*1e-9", "Localization": [ { "Culture": "en-US", @@ -99,7 +99,7 @@ { "SingularName": "TonnePerCubicMeter", "PluralName": "TonnesPerCubicMeter", - "FromUnitToBaseFunc": "x*1000", + "FromUnitToBaseFunc": "x/0.001", "FromBaseToUnitFunc": "x*0.001", "Localization": [ {