File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
UnitsNet.Tests/CustomCode
GeneratedCode/UnitClasses Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public class EnergyTests : EnergyTestsBase
46
46
47
47
protected override double ErgsInOneJoule => 10000000 ;
48
48
49
- protected override double ThermsEcInOneJoule => 9.47816988e -9 ;
49
+ protected override double ThermsEcInOneJoule => 9.4781712031331720001278504447561e -9 ;
50
50
51
51
protected override double FootPoundsInOneJoule => 0.737562149 ;
52
52
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ public double Calories
150
150
/// </summary>
151
151
public double DecathermsEc
152
152
{
153
- get { return ( _joules / 1.05506e+8 ) / 1e1d ; }
153
+ get { return ( _joules / 105505585.262 ) / 1e1d ; }
154
154
}
155
155
156
156
/// <summary>
@@ -254,7 +254,7 @@ public double MegawattHours
254
254
/// </summary>
255
255
public double ThermsEc
256
256
{
257
- get { return _joules / 1.05506e+8 ; }
257
+ get { return _joules / 105505585.262 ; }
258
258
}
259
259
260
260
/// <summary>
@@ -311,7 +311,7 @@ public static Energy FromCalories(double calories)
311
311
/// </summary>
312
312
public static Energy FromDecathermsEc ( double decathermsec )
313
313
{
314
- return new Energy ( ( decathermsec * 1.05506e+8 ) * 1e1d ) ;
314
+ return new Energy ( ( decathermsec * 105505585.262 ) * 1e1d ) ;
315
315
}
316
316
317
317
/// <summary>
@@ -415,7 +415,7 @@ public static Energy FromMegawattHours(double megawatthours)
415
415
/// </summary>
416
416
public static Energy FromThermsEc ( double thermsec )
417
417
{
418
- return new Energy ( thermsec * 1.05506e+8 ) ;
418
+ return new Energy ( thermsec * 105505585.262 ) ;
419
419
}
420
420
421
421
/// <summary>
Original file line number Diff line number Diff line change 93
93
{
94
94
"SingularName" : " ThermEc" ,
95
95
"PluralName" : " ThermsEc" ,
96
- "FromUnitToBaseFunc" : " x*1.05506e+8 " ,
97
- "FromBaseToUnitFunc" : " x/1.05506e+8 " ,
96
+ "FromUnitToBaseFunc" : " x*105505585.262 " ,
97
+ "FromBaseToUnitFunc" : " x/105505585.262 " ,
98
98
"Prefixes" : [ " Deca" ],
99
99
"Localization" : [
100
100
{
You can’t perform that action at this time.
0 commit comments