Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix force conversion rates #1308

Merged
merged 8 commits into from
Sep 16, 2023

Conversation

MH-ZShearer
Copy link
Contributor

@MH-ZShearer MH-ZShearer commented Aug 21, 2023

Fixes #1306

Corrects the conversion rates of the force quantity to be the precisely defined values, relative to standard gravity.

Adds a unit test that verifies that the conversion rate from kilograms divided by the conversion rate from newtons equals standard gravity (9.80665 m/s2).

Takes the rate from kilograms and divides it by the rate from newtons
Standard gravity is stated as being 9.80665 m/s2
Opt to have the compiler calculate the expected value
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.

Very nice, just a few minor things to look at.

Common/UnitDefinitions/Force.json Show resolved Hide resolved
UnitsNet.Tests/CustomCode/ForceTests.cs Show resolved Hide resolved
@angularsen
Copy link
Owner

Will get to this soon

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.

Almost there 😊

UnitsNet.Tests/CustomCode/ForceTests.cs Outdated Show resolved Hide resolved
@angularsen angularsen added the pending-response Waiting for response from author of PR/issue. label Sep 11, 2023
@angularsen angularsen merged commit 628c531 into angularsen:master Sep 16, 2023
1 check passed
@angularsen
Copy link
Owner

Thanks! A lot of great improvements here.
Nuget should be out shortly.

Release UnitsNet/5.33.0 · angularsen/UnitsNet

Now that this is merged, I can put my attention to #1309 the next time I find some free time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-response Waiting for response from author of PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect standard gravity/unit conversion constant
2 participants