Skip to content

Commit 0f4c5d0

Browse files
Dmitriy Inozemtseveriove
authored andcommitted
Update for ThermsEC
1 parent b99444a commit 0f4c5d0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

UnitsNet.Tests/CustomCode/EnergyTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class EnergyTests : EnergyTestsBase
4646

4747
protected override double ErgsInOneJoule => 10000000;
4848

49-
protected override double ThermsEcInOneJoule => 9.47816988e-9;
49+
protected override double ThermsEcInOneJoule => 9.4781712031331720001278504447561e-9;
5050

5151
protected override double FootPoundsInOneJoule => 0.737562149;
5252

UnitsNet/GeneratedCode/UnitClasses/Energy.g.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public double Calories
150150
/// </summary>
151151
public double DecathermsEc
152152
{
153-
get { return (_joules/1.05506e+8) / 1e1d; }
153+
get { return (_joules/105505585.262) / 1e1d; }
154154
}
155155

156156
/// <summary>
@@ -254,7 +254,7 @@ public double MegawattHours
254254
/// </summary>
255255
public double ThermsEc
256256
{
257-
get { return _joules/1.05506e+8; }
257+
get { return _joules/105505585.262; }
258258
}
259259

260260
/// <summary>
@@ -311,7 +311,7 @@ public static Energy FromCalories(double calories)
311311
/// </summary>
312312
public static Energy FromDecathermsEc(double decathermsec)
313313
{
314-
return new Energy((decathermsec*1.05506e+8) * 1e1d);
314+
return new Energy((decathermsec*105505585.262) * 1e1d);
315315
}
316316

317317
/// <summary>
@@ -415,7 +415,7 @@ public static Energy FromMegawattHours(double megawatthours)
415415
/// </summary>
416416
public static Energy FromThermsEc(double thermsec)
417417
{
418-
return new Energy(thermsec*1.05506e+8);
418+
return new Energy(thermsec*105505585.262);
419419
}
420420

421421
/// <summary>

UnitsNet/UnitDefinitions/Energy.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@
9393
{
9494
"SingularName": "ThermEc",
9595
"PluralName": "ThermsEc",
96-
"FromUnitToBaseFunc": "x*1.05506e+8",
97-
"FromBaseToUnitFunc": "x/1.05506e+8",
96+
"FromUnitToBaseFunc": "x*105505585.262",
97+
"FromBaseToUnitFunc": "x/105505585.262",
9898
"Prefixes": [ "Deca" ],
9999
"Localization": [
100100
{

0 commit comments

Comments
 (0)