Skip to content

Conversation

@ngeslin
Copy link
Contributor

@ngeslin ngeslin commented Jul 17, 2019

No description provided.

Copy link
Owner

@angularsen angularsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but a couple of things I'd like you to consider first.

@@ -0,0 +1,32 @@
{
"Name": "RatioChangeRate",
"BaseUnit": "PercentPerSecond",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would choose DecimalFractionPerSecond as base unit, to be consistent with Ratio.

You would then have to swap some of the conversion functions and test case values too.

{
"Name": "RatioChangeRate",
"BaseUnit": "PercentPerSecond",
"XmlDoc": "The quantity of percent flowing per unit of time.",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about The change in ratio per unit of time. ?

"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "" ]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm.. should this not have an abbreviation? Not sure what, but would perhaps 1/s work? Just something to signify the time dimensions we clearly have.

- Use of DecimalFractionPerSecond as base unit
- Correction of the documentation
- Adding abbreviation for DecimalFractionPerSecond
@ngeslin
Copy link
Contributor Author

ngeslin commented Jul 18, 2019

You are right, I fixed thoses points. I wasn't sure for the abbreviation as a DecimalFraction do not have any.

@angularsen angularsen merged commit 3501e1e into angularsen:master Jul 18, 2019
@ngeslin ngeslin deleted the adding-ratiochangerate-unit branch July 18, 2019 09:11
@angularsen
Copy link
Owner

Nuget on the way out
Release UnitsNet/4.30.0 · angularsen/UnitsNet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants