Skip to content

Commit 0009768

Browse files
Fix BUnits (#906)
1 parent 2f0965c commit 0009768

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Common/UnitDefinitions/Frequency.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@
9595
{
9696
"SingularName": "BUnit",
9797
"PluralName": "BUnits",
98-
"FromUnitToBaseFunc": "x * x * 1e-3",
99-
"FromBaseToUnitFunc": "Math.Sqrt(x * 1e3)",
98+
"FromUnitToBaseFunc": "Math.Sqrt(x * 1e3)",
99+
"FromBaseToUnitFunc": "x * x * 1e-3",
100100
"Localization": [
101101
{
102102
"Culture": "en-US",

UnitsNet.Tests/CustomCode/FrequencyTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ public class FrequencyTests : FrequencyTestsBase
2828

2929
protected override double BeatsPerMinuteInOneHertz => 60;
3030

31-
protected override double BUnitsInOneHertz => 31.622776601683793; // = Math.Sqrt(1000);
31+
protected override double BUnitsInOneHertz => 0.001;
3232
}
3333
}

UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Frequency.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/Frequency.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)