Skip to content

Commit 4a8b708

Browse files
authored
Fix formulas for InverseDegreeFahrenheit (#808)
1 parent b60d78e commit 4a8b708

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Common/UnitDefinitions/CoefficientOfThermalExpansion.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
"BaseUnits": {
4343
"Θ": "DegreeFahrenheit"
4444
},
45-
"FromUnitToBaseFunc": "x*5/9",
46-
"FromBaseToUnitFunc": "x*9/5",
45+
"FromUnitToBaseFunc": "x*9/5",
46+
"FromBaseToUnitFunc": "x*5/9",
4747
"Localization": [
4848
{
4949
"Culture": "en-US",

UnitsNet.Tests/CustomCode/CoefficientOfThermalExpansionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class CoefficientOfThermalExpansionTests : CoefficientOfThermalExpansionT
3030
{
3131
protected override double InverseDegreeCelsiusInOneInverseKelvin => 1.0;
3232

33-
protected override double InverseDegreeFahrenheitInOneInverseKelvin => 1.8;
33+
protected override double InverseDegreeFahrenheitInOneInverseKelvin => 0.5555555555555556;
3434

3535
protected override double InverseKelvinInOneInverseKelvin => 1.0;
3636
}

UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet/GeneratedCode/Quantities/CoefficientOfThermalExpansion.g.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)