Skip to content

Commit d3e0b56

Browse files
committed
fixup! Updated conversions to be the same style. NEED TO RUN GenerateUnits.Bat
Mistake in a conversion, causing tests to fail.
1 parent f4bc9c9 commit d3e0b56

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

UnitsNet/GeneratedCode/UnitClasses/Density.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public static Density FromTonnesPerCubicMeter(double tonnespercubicmeter)
259259
/// </summary>
260260
public static Density FromTonnesPerCubicMillimeter(double tonnespercubicmillimeter)
261261
{
262-
return new Density(tonnespercubicmillimeter/1e-9);
262+
return new Density(tonnespercubicmillimeter/1e-12);
263263
}
264264

265265
#if !WINDOWS_UWP

UnitsNet/Scripts/UnitDefinitions/Density.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
{
7676
"SingularName": "TonnePerCubicMillimeter",
7777
"PluralName": "TonnesPerCubicMillimeter",
78-
"FromUnitToBaseFunc": "x/1e-9",
78+
"FromUnitToBaseFunc": "x/1e-12",
7979
"FromBaseToUnitFunc": "x*1e-12",
8080
"Localization": [
8181
{

0 commit comments

Comments
 (0)