Skip to content

Incorrect standard gravity/unit conversion constant #1306

@MH-ZShearer

Description

@MH-ZShearer

Working in the force calibration industry, and needing to occasionally perform mass conversion, I don't agree on the values that are used for force, and mass, unit conversions. While not technically the standard acceleration due to standard gravity (standard gravity), these unit conversion rates are derived from that value and are accepted as the standard unit conversion rate.

I'm not sure where the constant originally came from, but the furthest back I could find it referenced in this repository was at the below linked file. This value has carried through significant overhauls to the library for the last decade without any documentation about where it came from. I propose that the value 9.80665002864 be changed to 9.80665 as per the standard definition of acceleration due to standard gravity.

https://en.wikipedia.org/wiki/Gravitational_acceleration

A conventional standard value is defined exactly as 9.80665 m/s2 (32.1740 ft/s2)

https://en.wikipedia.org/wiki/Standard_gravity

It is defined by standard as 9.80665 m/s2 (about 32.17405 ft/s2). This value was established by the 3rd General Conference on Weights and Measures (1901, CR 70) and used to define the standard weight of an object as the product of its mass and this nominal acceleration.

Although the actual acceleration of free fall on Earth varies according to location, the above standard figure is always used for metrological purposes.

Original

public const double Gravity = 9.80665002864;

Current

"FromUnitToBaseFunc": "{x} * 9.80665002864",

It may be worth pointing out that the conversion rate for newtons to kilograms-force is also derived from standard gravity and would require the value here to be changed as well. Other conversion rates, and quantities, are impacted by this "constant" as well.

For reference, we use 4.4482216152605 N/lbf as the conversion rate for pounds-force to newtons and 0.45359237 kgf/lbf as the conversion rate for pounds-force to kilograms-force. And to calculate the value of standard gravity, we take the conversion rate of lbf -> N divided by the conversion rate of lbf -> kgf. In the context of Units.NET, it should be the conversion rate of N -> N divided by the conversion rate of N -> kgf. This can be used as a unit test to verify the values aren't changed in the future.

https://en.wikipedia.org/wiki/Kilogram-force

Therefore, one kilogram-force is by definition equal to 9.80665 N.


Edit: I originally included the mass equations because I thought I remembered them being wrong as well. After double checking today, it appears the mass conversions are correct, but the force conversions are not. The values look like they are the result of some rounding errors but I can't quite put my finger on what it might be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions