unitsofmeasurement / indriya

JSR 385 - Reference Implementation
Other
115 stars 40 forks source link

Possible tweak for Newton-metre #380

Open keilw opened 1 year ago

keilw commented 1 year ago

Based on https://github.com/unitsofmeasurement/indriya/issues/257#issuecomment-532363116 there could be a need for some special handling of the Newton-metre, because like Wikipedia also states:

This usage is generally discouraged,[3] since it can lead to confusion as to whether a given quantity expressed in newton-metres is a torque or a quantity of energy.

Java obviously takes the different quaqntity of Energy vs. Torque into consideration. So the composition could be the same, but they never will be equal, probably not even equivalent since that requires the same quantity type.