Skip to content

Commit d980ec1

Browse files
andrerodiAndré Rodi
and
André Rodi
authored
Add VolumeFlow prefixes Deca, Hecto (#1362)
Fixes #1253 Added the prefixes 'deca' and 'hecto', since, at least for the 'hecto' prefix, it's a very common unit used in the brewing industry. Added the 'deca' prefix while I was at it. --------- Co-authored-by: André Rodi <[email protected]>
1 parent 6604660 commit d980ec1

File tree

12 files changed

+1234
-140
lines changed

12 files changed

+1234
-140
lines changed

Common/UnitDefinitions/VolumeFlow.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
"PluralName": "LitersPerSecond",
182182
"FromUnitToBaseFunc": "{x} / 1000",
183183
"FromBaseToUnitFunc": "{x} * 1000",
184-
"Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Kilo", "Mega" ],
184+
"Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Deca", "Hecto", "Kilo", "Mega" ],
185185
"Localization": [
186186
{
187187
"Culture": "en-US",
@@ -198,7 +198,7 @@
198198
"PluralName": "LitersPerMinute",
199199
"FromUnitToBaseFunc": "{x} / 60000.00000",
200200
"FromBaseToUnitFunc": "{x} * 60000.00000",
201-
"Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Kilo", "Mega" ],
201+
"Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Deca", "Hecto", "Kilo", "Mega" ],
202202
"Localization": [
203203
{
204204
"Culture": "en-US",
@@ -215,7 +215,7 @@
215215
"PluralName": "LitersPerHour",
216216
"FromUnitToBaseFunc": "{x} / 3600000.000",
217217
"FromBaseToUnitFunc": "{x} * 3600000.000",
218-
"Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Kilo", "Mega" ],
218+
"Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Deca", "Hecto", "Kilo", "Mega" ],
219219
"Localization": [
220220
{
221221
"Culture": "en-US",
@@ -232,7 +232,7 @@
232232
"PluralName": "LitersPerDay",
233233
"FromUnitToBaseFunc": "{x} / 86400000",
234234
"FromBaseToUnitFunc": "{x} * 86400000",
235-
"Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Kilo", "Mega" ],
235+
"Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Deca", "Hecto", "Kilo", "Mega" ],
236236
"Localization": [
237237
{
238238
"Culture": "en-US",

Common/UnitEnumValues.g.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,15 @@
16761676
"MegaliterPerMinute": 64,
16771677
"MegaliterPerSecond": 65,
16781678
"MegaukGallonPerDay": 73,
1679-
"MegausGallonPerDay": 77
1679+
"MegausGallonPerDay": 77,
1680+
"DecaliterPerDay": 71,
1681+
"DecaliterPerHour": 78,
1682+
"DecaliterPerMinute": 67,
1683+
"DecaliterPerSecond": 70,
1684+
"HectoliterPerDay": 74,
1685+
"HectoliterPerHour": 72,
1686+
"HectoliterPerMinute": 75,
1687+
"HectoliterPerSecond": 69
16801688
},
16811689
"VolumeFlowPerArea": {
16821690
"CubicFootPerMinutePerSquareFoot": 1,

UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeFlow.g.cs

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

UnitsNet.NanoFramework/GeneratedCode/Units/VolumeFlowUnit.g.cs

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

UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToVolumeFlowExtensionsTest.g.cs

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

UnitsNet.NumberExtensions/GeneratedCode/NumberToVolumeFlowExtensions.g.cs

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

UnitsNet.Tests/CustomCode/VolumeFlowTests.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,22 @@ public class VolumeFlowTests : VolumeFlowTestsBase
165165

166166
protected override double UsGallonsPerSecondInOneCubicMeterPerSecond => 2.64172052358148E2;
167167

168+
protected override double DecalitersPerDayInOneCubicMeterPerSecond => 8.64E6;
169+
170+
protected override double DecalitersPerHourInOneCubicMeterPerSecond => 360_000;
171+
172+
protected override double DecalitersPerMinuteInOneCubicMeterPerSecond => 6_000;
173+
174+
protected override double DecalitersPerSecondInOneCubicMeterPerSecond => 100;
175+
176+
protected override double HectolitersPerDayInOneCubicMeterPerSecond => 864_000;
177+
178+
protected override double HectolitersPerHourInOneCubicMeterPerSecond => 36_000;
179+
180+
protected override double HectolitersPerMinuteInOneCubicMeterPerSecond => 600;
181+
182+
protected override double HectolitersPerSecondInOneCubicMeterPerSecond => 10;
183+
168184
[Theory]
169185
[InlineData(20, 2, 40)]
170186
[InlineData(20, 62, 1240)]

0 commit comments

Comments
 (0)