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

Torque #4

Closed
evantandersen opened this issue Oct 3, 2013 · 4 comments
Closed

Torque #4

evantandersen opened this issue Oct 3, 2013 · 4 comments

Comments

@evantandersen
Copy link

There is currently no support for units of torque. Newton meters, pound feet, etc.

@gentooboontoo
Copy link
Owner

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');

@evantandersen
Copy link
Author

(new Qty('12 pound ft')).to('N m')

Throws an exception.

@rage-shadowman
Copy link
Contributor

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');

@gentooboontoo
Copy link
Owner

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.

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

No branches or pull requests

3 participants