Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Convert/documentation/conversion data/introduction
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Notes on units == === Energy and torque === By convention, units written as force-distance (such as lbft or kgf.m) are torque, and those written as distance-force (such as ftlbf) are energy. See [[WP:MOSNUM#Unit names]] and the [[WT:Manual of Style/Dates and numbers/Archive 135#Foot-pounds and pound-feet|discussion]], and see [[Pound-foot (torque)]] and [[Foot-pound (energy)]]. However, some topics use traditional units that conflict with the above convention. To handle these, [[Module:Convert/makeunits]] includes a <code>specials</code> table that adds an "alttype" (alternate type) field to certain whitelisted units. The alttype field allows conversion between units of different type, provided each unit is whitelisted to allow the conversion. As at December 2013, the following energy units have alttype = "torque" (the first line consists of different units, while the second line consists of aliases for units in the first line): *ftlb, ftlb-f, ftlbf, inlb, inlb-f, inlbf, inoz-f, inozf *ft.lbf, ft·lb-f, ft·lbf, in.lb-f, in.lbf, in.oz-f, in.ozf, in·lb-f, in·lbf, in·oz-f, in·ozf The following torque units have alttype = "energy": *Nm *N.m, N·m For example, the following conversion works despite the fact that Nm is torque and ftlbf is energy: *<code><nowiki>{{convert|1|Nm|ftlbf}}</nowiki></code> → {{convert|1|Nm|ftlbf}}
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)