Skip to content

Commit 6787eab

Browse files
authored
Fix RatioChangeRate conversion functions (#881)
Seems like wrong base unit was assumed.
1 parent f58656c commit 6787eab

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

Common/UnitDefinitions/RatioChangeRate.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
{
77
"SingularName": "PercentPerSecond",
88
"PluralName": "PercentsPerSecond",
9-
"FromUnitToBaseFunc": "x",
10-
"FromBaseToUnitFunc": "x",
9+
"FromUnitToBaseFunc": "x/1e2",
10+
"FromBaseToUnitFunc": "x*1e2",
1111
"Localization": [
1212
{
1313
"Culture": "en-US",
@@ -18,15 +18,14 @@
1818
{
1919
"SingularName": "DecimalFractionPerSecond",
2020
"PluralName": "DecimalFractionsPerSecond",
21-
"FromUnitToBaseFunc": "x*1e2",
22-
"FromBaseToUnitFunc": "x/1e2",
21+
"FromUnitToBaseFunc": "x",
22+
"FromBaseToUnitFunc": "x",
2323
"Localization": [
2424
{
2525
"Culture": "en-US",
2626
"Abbreviations": [ "/s" ]
2727
}
2828
]
2929
}
30-
3130
]
3231
}

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

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

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

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

UnitsNet/GeneratedCode/Quantities/RatioChangeRate.g.cs

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

0 commit comments

Comments
 (0)