Closed evantandersen closed 11 years ago
What do you mean exactly? Could you give me some example?
Quantities below seem to work as expected:
new Qty('12 N*m');
new Qty('12 pound ft');
(new Qty('12 pound ft')).to('N m')
Throws an exception.
pound*ft is not the same as foot-pound... try the unit "pound-force" or "lbf" instead
new Qty('12 lbf').to('N');
new Qty('12 lbf*ft').to('N*m');
As pointed out by @rage-shadowman, pounds are mass not force so as expected pound*feet cannot be converted to torque. Try to use SI units when unsure.
(new Qty('N*m')).toBase().units(); // => "kg*m2/s2"
(new Qty('lbs*ft')).toBase().units(); // => "kg*m"
(new Qty('lbf*ft')).toBase().units(); // => "kg*m2/s2"
I also have to add documentation about supported units.
There is currently no support for units of torque. Newton meters, pound feet, etc.