Skip to content

Commit 1654fa0

Browse files
russelljahnangularsen
authored andcommitted
Add Freqency.BeatPerMinute (#611)
1 parent 53a88cd commit 1654fa0

File tree

5 files changed

+32
-0
lines changed

5 files changed

+32
-0
lines changed

Common/UnitDefinitions/Frequency.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@
5555
"Abbreviations": [ "cph" ]
5656
}
5757
]
58+
},
59+
{
60+
"SingularName": "BeatPerMinute",
61+
"PluralName": "BeatsPerMinute",
62+
"FromUnitToBaseFunc": "x/60",
63+
"FromBaseToUnitFunc": "x*60",
64+
"Localization": [
65+
{
66+
"Culture": "en-US",
67+
"Abbreviations": [ "bpm" ]
68+
}
69+
]
5870
}
5971
]
6072
}

UnitsNet.Tests/CustomCode/FrequencyTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,7 @@ public class FrequencyTests : FrequencyTestsBase
4040
protected override double CyclesPerMinuteInOneHertz => 60;
4141

4242
protected override double RadiansPerSecondInOneHertz => 2*Math.PI;
43+
44+
protected override double BeatsPerMinuteInOneHertz => 60;
4345
}
4446
}

UnitsNet/GeneratedCode/Quantities/Frequency.NetFramework.g.cs

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

UnitsNet/GeneratedCode/UnitAbbreviationsCache.g.cs

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

UnitsNet/GeneratedCode/Units/FrequencyUnit.g.cs

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

0 commit comments

Comments
 (0)