ទំព័រគំរូ:Convert

ដោយវិគីភីឌា
Jump to navigation Jump to search
Documentation icon ឯកសារកម្មទំព័រគំរូ[បង្ហាញ] [កែប្រែ] [ប្រវត្តិ] [បន្សុទ្ធ]

Usage[កែប្រែ]

This template shows measurement quantities as primary and converted secondary units (or ranges), with optional rounding, wikilinks, abbreviation, or US spellings, and various separators including:  parentheses "( )", "or", hyphens, comma, "to" or dashes. The can help users by generating correct conversions from one unit of measurement to another, particularly for more complex units. It's also useful by making the text adhere to the Manual of Style. The text the template generates does not differ from a plain text equivalent, however.

Styles include: distance "៣២ មាត្រ (១០៥ ភត)" and "៣២ មាត្រs or ១០៥ ភត"; temperature "១៨ °C (៦៤ °F)"; mass "៥៥,០ kg (១២១ lb)" or "៦៥ ដល់ ៨០ kg (១៤០ ដល់ ១៨០ lb)"; etc. For units see: Convert/list of units.

Options include:  lk=in, abbr=on, abbr=off, sp=us, adj=on, adj=mid, disp=x, disp=table and sortable=on (explained below). By default, output is rounded to match the precision of input; alternatives include: sigfig=3 or using the end parameter, such as "|1" to show tenths or "|-2" to show full 100's, etc.

Single value:

{{convert|value|in_unit|out_unit|round_to|...}}

Range of 2 values, or set of 3 or 4 (see below for list of range options):

{{convert|val1|range|val2 |in_unit|out_unit|round_to|...}}
{{convert/3 |val1|range|val2|words|val3|in_unit|out_unit|round_to|...}}
{{convert/4 |val1|words|val2|words|val3|words|val4|in_unit|out_unit|...}}
  • Numbers must be entered in unformatted form (without commas). Values output by the template will be displayed formatted and with a true minus sign where appropriate. To specify with commas, re-code a number as {{formatnum:9,000,500|R}} (becomes 9000500).
  • Optional parameters, in examples below, allow abbreviated units (abbr=on), or U.S. spellings (sp=us for meter), or hyphenation (adj=on), etc.
  • This template may in some cases directly convert to other base units, for example {{convert|29.8|km/s|mi/h}} will directly convert the km/s to mph, as in ២៩,៨ km/s (៦៧០០០ mph).
  • For this template many levels of substitution are possible, hence doing this fully, step by step, is cumbersome. Use Special:ExpandTemplates instead.
  • The template has very limited in-built capacity for dimensional analysis. It is therefore up to the user to ensure that most input and output units are compatible. Do not, for example, attempt to convert barrels to tonnes (but see {{bbl to t}}). Also beware of units with similar names; the code oz, for example, is for the avoirdupois ounce (a unit of mass), do not use this if you want fluid ounces. Note also that the code lb gives pounds mass, for pounds force use lbf.
  • An attempt to convert a unit to itself, e.g., km to km, will result in a template loop.
  • The range functionality is not fully implemented for all units, so experimentation may be required.
  • This documentation page tends to lag behind in terms of what the template can do. For details see the talk page and its archives.

Examples[កែប្រែ]

Single value[កែប្រែ]

Input Displays as
{{convert|3.21|kg|lb}} ៣,២១ kilogram (៧,១ lb)
{{convert|3.21|kg|lb|0}} ៣,២១ kilogram (៧ lb)
{{convert|10|kg|lb|disp=or}} ១០ kilograms or ២២ lb
{{convert|6|ft|5|in|m}} ៦ ភ្វីត 5 inches (១,៩៦ ម)
{{convert|10|mi}} ១០ ម៉ាយល៍ (១៦ គ.ម.)
{{convert|100|mpgus}} 100 miles per US gallon (២,៤ ទំព័រគំរូ:Convert/fourL្រck; ១២០ mpg-imp)
{{convert|120|km/h}} ១២០ kilomet្រs per hour (៧៥ mph)
{{convert|18|°C|°F}} ១៨ °C (៦៤ °F)
{{convert|1250|sqft|m2|lk=in|sigfig=2}} ១២៥០ square feet (១១៦ m2)
Note 'lk=in' links only the input unit. This example is for illustration only, common units of measurement should not be linked. See: wp:overlink.
{{convert|20.5|m3|cuyd|lk=out|abbr=on}} ២០,៥ m3 (២៦,៨ cu yd)
Note 'lk=out' links only the output unit, cu yd.
{{convert|641|acre|ha sqmi|lk=on}} ៦៤១ អេកឺរs (២៥៩ ha; ១,០០២ sq mi)
Note 'lk=on' links all units. Per guidelines, common units should not be linked. See: wp:overlink.
{{convert|641|acre|ha sqmi|2|lk=on}} ៦៤១ អេកឺរs (២៥៩,៤០ ha; ១�០០ sq mi)
Although 640 acres equals 1 square mile; 641 acres rounded to two decimal places equals 1.00 sq mi.

Range of 2 values[កែប្រែ]

Note: not yet operational for all units
Input Displays as
{{convert|60|and|170|kg|lb}} ៦០ and ១៧០ kilograms (១៣០ and ៣៧០ lb)
{{convert|60|to|170|kg|lb}} ទំព័រគំរូ:Convert/ដល់/AoffSoff (១៣០ ដល់ ៣៧០ lb)
{{convert|60|to(-)|170|kg|lb}} ៦០ to ១៧០ kilograms (១៣០–៣៧០ lb)
{{convert|60|-|170|kg|lb}} 60–170 kilograms (១៣០–៣៧០ lb)
{{convert|41|to|50|F|C}} ៤១ ដល់ ៥០ °F (៥ ដល់&#៣២;១០ °C)
{{convert|41|-|50|F|K}} 41–50 °F (278–326 K)
{{convert|60|x|120|m|ft}} ៦០ by ១២០ មាត្រs (២០០ ភត × ៣៩០ ភត)
{{convert|60|+/-|10|m|ft}} ៦០ ± ១០ មាត្រs (២០០ ± ៣៣ ភត)
{{convert|19|to|27|L|USgal}} ទំព័រគំរូ:Convert/ដល់/AoffSoff (Expression error: Unrecognized punctuation character "�", ដល់ ៧,១ US gal)
{{convert|5|to|7|L|USgal}} ទំព័រគំរូ:Convert/ដល់/AoffSoff (១,៣ ដល់ ១,៨ US gal)
{{convert|4|-|9|L|USgal|abbr=off}} ៤–៩ lit្រs (១,១–២,៤ US gallons)

The following conversions are currently not available as a range of values:

  • Some imperial and US gallon-based units
  • Other fuel-consumption units, except "mpg" or "L100km" shown above.
  • Large scale units (e3, e6, e9)
  • Combination-based units (ft&in, st&lb, lb&oz) due to complexity of the conversion.

Range/set of 3 or 4 values[កែប្រែ]

Note: not yet operational for all units
Input Displays as
{{convert/3 |2|x|4|x|6|m|ft}} ២×៤×៦ មាត្រs (៦,៦×១៣×២០ ភត)
{{convert/3 |60|-|70|-|80|kg|lb}} ៦០–៧០–៨០ kilograms (១៣០–១៥០–១៨០ lb)
{{convert/4 |60|-|70|-|80|-|90|kg|lb}} ៦០–៧០–៨០–៩០ kilograms (១៣០–១៥០–១៨០–២០០ lb)
{{convert/3 |60|to|80|or|85|m|ft}} ៦០ to ៨០ or ៨៥ មាត្រs (២០០ to ២៦០ or ២៧៩ ភត)
{{convert/3 |11|by|15|rarely|16|ft|m}} ១១ by ១៥ rarely ១៦ ភ្វីត (៣,៤ by ៤,៦ rarely ៤,៩ ម)
{{convert/3 |41|to|50|to|60|F|C}} ៤១ to ៥០ to ៦០ °F (៥ to ១០ to ១៦ °C)
{{convert/4 |2|to|12|, in summer|25|to|36|C|F}} ២ to ១២, in summer ២៥ to ៣៦ °C (៣៦ to ៥៤, in summer ៧៧ to ៩៧ °F)
{{convert/3 |41|-|50|almost|51|F|K}} ៤១–៥០ almost ៥១ °F (២៧៨–២៨៣ almost ២៨៤ K)

For {{convert/3}} or {{convert/4}}, the separator words can be any text.

Parameters[កែប្រែ]

Parameters
Use US spelling attach |sp=us
Make units linked attach |lk=on   to link all units (default: lk=off)
attach |lk=in   to link only the input units
attach |lk=out  to link only the output units
(The manual of style suggests that you should not link common units of measurement).
Use the adjective form, or insert mid-text words attach |adj=on (e.g. "190-foot (58 m) bridge" instead of "190 feet...").
This produces the adjective form—the unit name in the singular with a hyphen (according to the Manual of Style).

attach |adj=mid (e.g. "190-foot bridge (58 m)" as: |adj=mid|bridge

or "190-foot-long bridge (58 m)" as: |adj=mid|-long bridge)

Note 1: Any rounding-parameter should follow the mid-text: "text|0".
Note 2: For adj=mid, must specify both input & output unit-codes.

For example, to convert feet, use "ft|m" or "ft|0":
  • {{convert|9|ft|m|adj=mid|-long}} → 9-foot-long (2.7 m)
To default the output unit-code, set parameter 3 to: 0.
Abbreviate units, or not attach |abbr=on to show unit symbols
attach |abbr=off   to show all unit names in full words
attach |abbr=in to abbreviate input units
attach |abbr=out to abbreviate output units
attach |abbr=values to suppress unit names & show only values. So, {{convert|6|mi|abbr=values}} gives: ៦ (៩,៧).
Change "( )" to display other separators attach |disp=comma to put comma, not brackets/parentheses
attach |disp=or to put "or" between units.
The default value is:  disp=b for brackets/parentheses.
Change "( )" to customized separators attach |disp=x| (begin | end) to show "xx (begin yy end)" See example 1
attach |disp=x|; to show "xx; yy" See example 2
attach |disp=x| (same as |) to show "xx (same as yy)". See example 3
Example 1: {{convert|9|km|mi|disp=x| [|]}}9 kilometres [5.6 mi] (note space before [|)
Example 2: {{convert|9|km|mi|disp=x|;}}9 kilometres;5.6 mi
Example 3: {{convert|10|km|mi|disp=x| (about |)}}10 kilometres (about 6.2 mi) (note spaces used within the code).
Display output only attach |disp=output only to show result number & unit
attach |disp=output number only to show just number
Note when using "disp=output only" then the unit name can still be shown as full words by abbr=off or linked by lk=on.
Example: {{convert|7500|acre|m2|disp=output only }} → ៣០០០០០០០ m2
Display units inverted as reverse order attach |disp=flip  to reverse the order & show output unit first.
So, {{convert|6|km|disp=flip}} shows "3.7 miles (6 km)".
To get symbol "mi" use abbr=in, to abbreviate the input unit (left-side unit).
Display unit name (only) attach |disp=unit to show the unit name for a symbol
The unit name will be plural when the amount is not 1, or hyphenated when adj=on. So, {{convert|2|cuyd|disp=unit}} shows "cubic yards" plural.
Display amounts as table cells attach |disp=table (or |disp=tablecen) Note: For use in tables, the template must start on a new line after a pipe. Only the number will be displayed unless you set |abbr=on, |lk=on, |lk=in or |lk=out. Example: here
Round to a specified number of significant figures attach |sigfig={some integer greater than zero}. In the case of temperatures Celsius or Fahrenheit this refers to the difference with the absolute-zero temperature. For example, at room temperature two significant digits means rounded to tens of degrees.
Round by 5 attach |disp=5  to round the output amount to the nearest 5 units. Not supported for all options.
Let Convert decide the unit to convert to skip the precision parameter (the 3rd or 4th unnamed parameter) e.g. {{convert|100|km|ft}} gives ១០០ សហាតិមាត្រ (៣៣០០០០ ភត) and {{convert|100|km}} gives ១០០ សហាតិមាត្រ (៦២ ម៉ៃ.).
Display input value with a fraction {{convert|3/8|in|mm|3|abbr=on}} → 38 in (៩,៥២៥ mm) or {{convert|11+1/4|in|cm|2|abbr=on}} → 11+14 in (២៨,៥៨ cm)

For negative amounts, use two minus signs (hyphens): -11-1/4.

Generate a hidden sort key for use with a sortable table attach |sortable=on to generate a hidden sort key so that sortable tables will sort correctly. This uses {{ntsh}} to generate a sort key from the first numeric value. It ignores any additional values, ie, if you use 6|ft|2|in as the value, it will only use the 6 for the sort key. This will cause numeric values to sort in numeric order, ie: 5, 10, 15 instead of 10, 15, 5.

Parameters still under construction[កែប្រែ]

Parameters still under construction. May not work in all situations
disp=5[note ១] The output will be rounded to the nearest 5 units. Might not work when linking unit names.
disp=tablecen[note ១] Similar to disp=table except that the values with be centered within the column. See the tables at La Nouvelle branch, BM-21 Grad for in use examples.
disp=comma[note ១] The two values will be separated by a comma, for situations where the first value is already within parentheses. See the Geography tables on Labrador for an example.
abbr=in Abbreviates only the input unit.
abbr=out Abbreviates only the output unit.
abbr=comma[note ១] "Abbreviates" (removes) commas. For ranges, using abbr=comma conflicts with internal options, so instead, append "nocomma" to a range-word: tonocomma, bynocomma, andnocomma, -nocomma & xnocomma.
disp=br This separates input and output units with a forced line break. This can be useful in tables with limited horizontal space.
disp=sqbr Shows square brackets "[ ]" instead of parentheses "( )" in output. Example: 55 miles [89 km]. This option can be used in direct quotes, to show conversions in editorial brackets. See: attach |disp=x|[|], above, as another way of showing brackets "[ ]".
  1. ១,០ ១,១ ១,២ ១,៣ This is a limited, temporary option, until an alternative can be implemented.

Rounding[កែប្រែ]

Convert supports four types of rounding:

Rounding to a given precision
Specify the desired precision with the fourth unnamed parameter (or third unnamed parameter if the "convert to" parameter is omitted; or fifth unnamed parameter if a range is specified; or fourth unnamed parameter again if a range is specified and the "convert to" parameter is omitted; needs to be replaced with a "precision" named parameter). The conversion is rounded off to the nearest power of 110 this number. For instance, if the result is 8621 and the round number is '-2', the result will be 8600. If the result is '234.0283043' and the round number is '0', the result will be 234.
Rounding to a given number of significant figures
Specify the desired number of significant figures using |sigfig={some integer greater than zero} as noted above.
Default rounding
If neither the desired precision nor the desired number of significant figures is specified, the conversion will be rounded either to precision comparable that of the input value (the number of digits after the decimal point—or the negative of the number of non-significant zeroes before the point—is increased by one if the conversion is a multiplication by a number between 0.02 and 0.2, remains the same if the factor is between 0.2 and 2, is decreased by 1 if it is between 2 and 20, and so on) or to two significant figures, whichever is more precise. An exception to this is temperature, wherein the conversion will be rounded either to precision comparable to that of the input value or to that which would give three significant figures when expressed in kelvins, whichever is more precise.
Examples of default rounding
Input Displays as Note
{{convert|550|ft|m|0}} ៥៥០ ភ្វីត (១៦៨ ម) Approximate value is 167.64 m
{{convert|550|ft|m}} ៥៥០ ភ្វីត (១៧០ ម) Rounds to 170, when approximate value is 167.64 m
{{convert|500|ft|m|0}} ៥០០ ភ្វីត (១៥២ ម) Approximate value is 152.4 m
{{convert|500|ft|m}} ៥០០ ភ្វីត (១៥០ ម) Rounds to 150, when approximate value is 152.4 m

Units supported[កែប្រែ]

The table below lists units supported by this template. It is divided up according to the quantity being measured. Not all supported units are listed here; there are links to more complete lists for each quantity.

The codes listed in the code column (column 3) are accepted as input by the template. These can be used as the second or third unnamed parameter. For some units there exist alternative codes. These are listed in brackets and have been incorporated to make the code more flexible for editors, e.g. °F or F may be entered.

The codes listed in the combinations column (column 7) can be used to produce multiple conversions. They can only be used as the third unnamed parameter, e.g. {{convert|55|nmi|km mi}} produces "៥៥ nautical mile (១០២ km; ៦៣ mi)".

Abridged list of units supported by {{Convert}}
Explanation
system unit unit-
code
symbol or
abbrev.
notes conversion factor combination output units
the system(s) to which the unit belongs units listed by name unit-code to use in template symbols shown in output other notes about the units conversion factors used to convert to and from the SI base unit output codes for multiple conversions


LENGTH
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion
factor/m
combination output units
SI megametre Mm Mm US spelling: megameter
១០០០០០០
សហាតិមាតre km គ.ម. US spelling: kilometer
១០០០
  • km mi
មាតre m US spelling: meter
  • m ft
  • m ftin
centimetre cm cm US spelling: centimeter
០,០១
  • cm in
millimetre mm mm US spelling: millimeter
០,០០១
  • mm in
micrometre μm (um) µm US spelling: micrometer
០,០០០០០១
nanometre nm nm US spelling: nanometer
០,០០០០០០០០១
non-SI metric ångström Å
(angstrom)
Å ០,០០០០០០០០០១
Imperial
&
US customary
ម៉ាយល៍ mi ម៉ៃ. ១៦០៩,៣៤៤
  • mi km
furlong furlong ២០១,១៦៨
chain chain ២០,១១៦៨
rod rd rd For other names of this unit see the full list. ៥,០២៩២
fathom fathom assumes 1 fathom ≡ 6 ft ១,៨២៨៨
yard yd yd assumes the international definition ០,៩១៤៤
foot ft (foot) ភត code "foot" will show "foot" if plural.

code "ft" will show "foot" or "feet" depending on value.

០,៣០៤៨
  • ftin (feet and inches)
  • ft m (foot m)
inch in in ០,០២៥៤
  • in cm
  • in mm
Other nautical mile nmi nmi the international standard nautical mile
For other nautical miles see the full list.
១៨៥២
parsec pc pc ៣,០៨៥៦៧៧៥៨១៣០៥៧0×10^16
light-year ly ly ៩,៤៦០៧៣០៤៧២៥៨០៨×10^15
astronomical unit AU AU ១៤៩៥៩៧៨៧០៦៩១


Area
(Full list)
system unit code
(alternative)
abbreviation notes conversion factor/m2 combinations
SI សហតិមាតreការ៉េ km2 គ.ម US spelling: square kilometer
១០០០០០០
  • km2 sqmi
square metre m2 m2 US spelling: square meter
  • m2 sqft
square centimetre cm2 cm2 US spelling: square centimeter
០,០០០១
  • cm2 sqin
square millimetre mm2 mm² US spelling: square millimeter
០,០០០០០១
  • mm2 sqin
non-SI metric ហិកតា ha ha ១០០០០
Imperial
&
US customary
square mile sqmi ម៉ាយ ក. ២៥៨៩៩៨៨,១១០៣៣៦
  • sqmi km2
អេកឺរ acre ៤០៤៦,៨៥៦៤២២
square yard sqyd sq yd ០,៨៣៦១២៧៣៦
square foot sqft
(sqfoot)
sq ft code "sqfoot" will show "square foot" if plural.

code "sqfoot" will show "foot" or "feet" depending on value.

០,០៩២៩០៣០៤
  • sqft m2 (sqfoot m2)
square inch sqin sq in ០,០០០៦៤៥១៦
  • sqin cm2
Other square nautical mile sqnmi sq nmi ៣៤២៩៩០៤
dunam dunam For alternative spellings and definitions see the full list ១០០០
tsubo tsubo (៤០០/១២១)


VOLUME
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/m3 combinations
SI cubic metre m3 m3 US spelling: cubic meter
one kilolitre
cubic centimetre cm3 cm3 US spelling: cubic centimeter
one millilitre
០,០០០០០១
cc cc
cubic millimetre mm3 mm3 US spelling: cubic millimeter
០,០០០០០០០០១
non-SI metric kilolitre kl kl US spelling: kiloliter
one cubic metre
kL kL
litre l l US spelling: liter
one cubic decimetre
Allows triple output units. See: full list.
០,០០១
  • l impgal
  • l USgal
  • l U.S.gal
  • l USdrygal
  • l U.S.drygal
L L
  • L impgal
  • L impqt
  • L USgal
  • L U.S.gal
  • L USdrygal
  • L U.S.drygal
centilitre cl cl US spelling: centiliter
០,០០០០១
cL cL
millilitre ml ml US spelling: milliliter
one cubic centimetre
០,០០០០០១
  • ml impoz
  • ml USoz
  • ml U.S.oz
mL mL
  • mL impoz
  • mL USoz
  • mL U.S.oz
Imperial
&
US customary
cubic yard cuyd cu yd ០,៧៦៤៥៥៤៨៥៧៩៨៤
cubic foot cuft (cufoot) cu ft code "cufoot" will show "cubic foot" if plural.

code "cufoot" will show "foot" or "feet" depending on value.

០,០២៨៣១៦៨៤៦៥៩២
cubic inch cuin cu in ០,០០០០១៦៣៨៧០៦៤
Imperial imperial barrel impbbl imp bbl 36 imp gal ០,១៦៣៦៥៩២៤
imperial bushel impbsh imp bsh 8 imp gal ០,០៣៦៣៦៨៧២
impbu imp bu
imperial gallon impgal imp gal 4.54609 litres by definition, also
4 imp qt or 8 imp pt or 160 imp fl oz
Allows triple output units. See: full list.
០,០០៤៥៤៦០៩
  • impgal l
  • impgal L
  • impgal USgal
  • impgal U.S.gal
  • impgal USdrygal
  • impgal U.S.drygal
imperial quart impqt imp qt 1/4 imp gal or 40 imp fl oz ០,០០១១៣៦៥២២៥
imperial pint imppt imp pt 1/8 imp gal or 20 imp fl oz ០,០០០៥៦៨២៦១២៥
imperial fluid ounce impoz (impfloz) imp fl oz 1/160 imp gal ០,០០០០២៨៤១៣០៦២៥
  • impoz USoz
  • impoz U.S.oz
  • impoz ml
  • impoz mL
US customary
liquid measure
US barrel USbbl US bbl 31½ US gal
used for liquids except for oil and beer (see the full list)
០,១១៩២៤០៤៧១១៩៦
U.S.bbl U.S. bbl
barrel oilbbl bbl 42 US gal ០,១៥៨៩៨៧២៩៤៩២៨
US beer barrel USbeerbbl
(usbeerbbl)
US bbl ០,១១៧៣៤៧៧៦៥៣០៤
U.S.beerbbl
(usbeerbbl)
U.S. bbl
US gallon USgal US gal 231 cubic inches by definition, also
4 US qt or 8 US pt or 128 US fl oz
Allows triple output units. See: full list.
០,០០៣៧៨៥៤១១៧៨៤
  • USgal l
  • USgal L
  • USgal impgal
U.S.gal U.S. gal
  • USgal l
  • USgal L
  • USgal impgal
US quart USqt US qt 1/4 US gal or 32 US fl oz ០,០០០៩៤៦៣៥២៩៤៦
U.S.qt U.S. qt
US pint USpt US pt 1/8 US gal or 16 US fl oz ០,០០០៤៧៣១៧៦៤៧៣
U.S.pt U.S. pt
US fluid ounce USoz
(USfloz)
US fl oz 1/128 US gal ០,០០០០២៩៥៧៣៥២៩៥៦២៥
  • USoz ml
  • USoz mL
  • USoz impoz
U.S.oz
(U.S.floz)
U.S. fl oz
  • U.S.oz ml
  • U.S.oz mL
  • U.S.oz impoz
US customary
dry measure
US dry barrel USdrybbl US dry bbl 105/32 US bsh ០,១១៥៦២៨១៩៨៩៨៥០៨
U.S.drybbl U.S. dry bbl
US bushel USbsh US bsh 2150.42 cubic inches by definition ០,០៣៥២៣៩០៧០១៦៦៨៨
U.S.bsh U.S. bsh
US bushel USbu US bu 2150.42 cubic inches by definition ០,០៣៥២៣៩០៧០១៦៦៨៨
U.S.bu U.S. bu
US dry gallon USdrygal US dry gal 1/8 US bsh
Allows triple output units. See: full list.
០,០០៤៤០៤៨៨៣៧៧០៨៦
  • USdrygal l
  • USdrygal L
  • USdrygal impgal
U.S.drygal U.S. dry gal
  • U.S.drygal l
  • U.S.drygal L
  • U.S.drygal impgal
US dry quart USdryqt US dry qt 1/32 US bsh ០,០០១១០១២២០៩៤២៧១៥
U.S.dryqt U.S. dry qt
US dry pint USdrypt US dry pt 1/32 US bsh ០,០០០៥៥០៦១០៤៧១៣៥៧៥
U.S.drypt U.S. dry pt


SPEED
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/(m/s) combinations
SI metre per second m/s m/s US spelling: meter per second
  • m/s ft/s (m/s foot/s)
non-SI metric kilometre per hour km/h km/h US spelling: kilometer per hour
(៥/១៨)
  • km/h mph
Imperial
&
US customary
mile per hour mph mph ០,៤៤៧០៤
  • mph km/h
  • mph kn
foot per second ft/s (foot/s) ft/s code "foot/s" will show "foot per second" if plural.

code "foot/s" will show "foot" or "feet" depending on value.

០,៣០៤៨
  • ft/s m/s
Maritime units knot kn (knot) kn (៤,៦៣/៩)
  • kn mph


FORCE
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/N combination output units
SI giganewton GN GN Allows triple output units. See: full list. ១០០០០០០០០០
  • GN LT-f
  • GN LTf
  • GN ST-f
  • GN STf
meganewton MN MN Allows triple output units. See: full list. ១០០០០០០
  • MN LT-f
  • MN LTf
  • MN ST-f
  • MN STf
kilonewton kN kN Allows triple output units. See: full list. ១០០០
  • kN LT-f
  • kN LTf
  • kN ST-f
  • kN STf
newton N N
  • N lb-f
  • N lbf
  • N oz-f
  • N ozf
millinewton mN mN ០,០០១
  • mN oz-f
  • mN ozf
  • mN gr-f
  • mN grf
micronewton μN (uN) µN ០,០០០០០១
  • μN gr-f
  • μN grf
nanonewton nN nN ០,០០០០០០០០១
  • nN gr-f
  • nN grf
cgs megadyne Mdyn Mdyn ១០
kilodyne kdyn kdyn ០,០១
dyne dyn
(dyne)
dyn ០,០០០០១
millidyne mdyn mdyn ០,០០០០០០០១
Metric gravitational units tonne-force t-f tf ៩៨០៦,៦៥
tf tf
kilogram-force kg-f kgf ៩,៨០៦៦៥
kgf kgf
gram-force g-f gf ០,០០៩៨០៦៦៥
gf gf
milligram-force mg-f mgf ០,០០០០០៩៨០៦៦៥
mgf mgf
Avoirdupois-based units poundal pdl pdl ០,១៣៨២៥៤៩៥៤៣៧៦
long ton-force LT-f LTf ៩៩៦៤,០១៦៤១៨១៨៣៥២
  • LT-f ST-f
LTf LTf
  • LTf STf
short ton-force ST-f STf ៨៨៩៦,៤៤៣២៣០៥២១
  • ST-f LT-f
STf STf
  • STf LTf
pound-force lb-f lbf ៤,៤៤៨២២១៦១៥២៦០៥
lbf lbf
grain-force gr-f grf ០,០០០៦៣៥៤៦០២៣០៧៥១៥
grf grf


ENERGY
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/J combinations
SI gigajoule GJ GJ ១០០០០០០០០០
megajoule MJ MJ ១០០០០០០
kilojoule kJ kJ ១០០០
hectojoule hJ hJ ១០០
decajoule daJ daJ ១០
joule J J
decijoule dJ dJ ០,១
centijoule cJ cJ ០,០១
millijoule mJ mJ ០,០០១
microjoule μJ (uJ) µJ ០,០០០០០១
nanojoule nJ nJ ០,០០០០០០០០១
cgs megaerg Merg Merg ០,១
kiloerg kerg kerg ០,០០០១
erg erg erg ០,០០០០០០១
Watt-hour multiples terawatt-hour TWh TWh ៣,៦×10^15
TW.h TW·h
gigawatt-hour GWh GWh ៣,៦×10^12
GW.h GW·h
megawatt-hour MWh MWh ៣៦០០០០០០០០
MW.h MW·h
kilowatt-hour kWh kW·h ៣៦០០០០០
kW.h kW·h
watt-hour Wh Wh ៣៦០០
W.h W·h
Electron-
volt
multiples
gigaelectronvolt GeV GeV ០,០០០០០០០០០១៦០២១៧៦៤៨៧
megaelectronvolt MeV MeV ១,៦០២១៧៦៤៨៧×10^−13
kiloelectronvolt keV keV ១,៦០២១៧៦៤៨៧×10^−16
electronvolt eV eV ១,៦០២១៧៦៤៨៧×10^−19
millielectronvolt meV meV ១,៦០២១៧៦៤៨៧×10^−22
Calorie multiples calorie Cal Cal The thermo-chemical calorie is the default definition. For others, see the full list. ៤១៨៤
megacalorie Mcal Mcal ៤១៨៤០០០
kilocalorie kcal kcal ៤១៨៤
calorie cal cal ៤,១៨៤
millicalorie mcal mcal ០,០០៤១៨៤
pound/
ounce
-foot/
inch-hour-minute-second
foot-poundal ftpdl ft·pdl ០,០៤២១៤០១១០០៩៣៨០៤៨
foot-pound force ftlbf ft·lbf ១,៣៥៥៨១៧៩៤៨៣៣១៤០០៤
ftlb-f ft·lbf
inch-pound force inlbf in·lbf ០,១១២៩៨៤៨២៩០២៧៦១៦៧
inlb-f in·lbf
inch-ounce force inozf in·ozf ០,០០៧០៦១៥៥១៨១៤២២៦០៤៣៧៥
inoz-f in·ozf
horsepower-hour hph hp·h 2,684,519.537696172792
British thermal unit British thermal unit Btu Btu The International Steam Table British thermal unit is used. For others, see the full list. ១០៥៥,០៥៥៨៥២៦២
BTU BTU
TNT-based units gigatonne of TNT GtTNT ៤,១៨៤×10^18
gigaton of TNT GtonTNT
megatonne of TNT MtTNT ៤,១៨៤×10^15
megaton of TNT MtonTNT Mt
kilotonne of TNT ktTNT ៤,១៨៤×10^12
kiloton of TNT ktonTNT kt
tonne of TNT tTNT ៤១៨៤០០០០០០
ton of TNT tonTNT
Other
Hartree Eh Eh ៤,៣៥៩៧៤៤១៧×10^−18
rydberg Ry Ry ២,១៧៩៨៧៤១×10^−18
tonne of oil equivalent toe toe ៤១៨៦៨០០០០០០
barrel of oil equivalent BOE BOE ៦១១៧៨៦៣២០០
cubic foot of natural gas cuftnaturalgas (cufootnaturalgas) Unit-code cufootnaturalgas will show "cubic foot of natural gas" if plural. 1,055,055.85262
litre-atmosphere latm l·atm ១០១,៣២៥
Latm L·atm
gallon-atmosphere impgalatm imp gal·atm ៤៦០,៦៣២៥៦៩២៥
US gallon-atmosphere USgalatm
(usgalatm)
US gal·atm ៣៨៣,៥៥៦៨៤៩០១៣៨
U.S.galatm
(usgalatm)
U.S. gal·atm


TEMPERATURE
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion
to kelvin
combinations
SI kelvin K K Allows triple output units. See: full list. [K]
  • K °C (K C)
  • K °R (K R)
  • K °F (K F)
degree Celsius °C (C) °C ([°C]+273.15)
  • °C K (C K)
  • °C °R (C R)
  • °C °F (C F)
Imperial
&
US customary
degree Rankine °R (R) °R ([°R]/1.8)
  • °R K (R K)
  • °R °C (R C)
  • °R °F (R F)
degree Fahrenheit °F (F) °F (([°F]+459.67)/1.8)
  • °F K (F K)
  • °F °C (F C)
  • °F °R (F R)
Celsius change C-change Used for temperature intervals instead of absolute temperatures
Example:  {{convert|5|C-change|0}} warmer
Result: ៥ °C (៩ °F) warmer
Fahrenheit change F-change Used for temperature intervals instead of absolute temperatures
Example:  {{convert|10|F-change|0}} colder
Result: ១០ °F (៦ °C) colder


MASS
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/kg combination output units
SI kilogram kg kg Allows triple output units. See: full list.
  • kg lb
  • kg st
gram g g ០,០០១
  • g oz
milligram mg mg ០,០០០០០១
  • mg gr
microgram μg (ug) µg ០,០០០០០០០០១
non-SI metric tonne t t Allows triple output units. See: full list. ១០០០
  • t LT
  • t ST
metric ton MT t
  • MT LT
  • MT ST
Avoirdupois long ton LT 2,240 lb
used mostly in the British Commonwealth.
Allows triple output units. See: full list.
១០១៦,០៤៦៩០៨៨
  • LT t
  • LT MT
  • LT ST
long ton
short ton ST 2,000 lb
used mostly in the US.
Allows triple output units. See: full list.
៩០៧,១៨៤៧៤
  • ST t
  • ST MT
  • ST LT
short ton
stone st st 14 lb
used mostly in the British Commonwealth except Canada.
Allows triple output units. See: full list.
៦,៣៥០២៩៣១៨
  • st kg
  • st lb
pound lb lb Allows triple output units. See: full list. ០,៤៥៣៥៩២៣៧
  • lb kg
  • lb st
ounce oz oz ០,០២៨៣៤៩៥២៣
  • oz g
drachm drachm ០,០០១៧៧១៨៤៥១៩៥
drachm dram
grain gr gr equivalent to the troy grain ០,០០០០៦៤៧៩៨៩១
Troy troy ounce ozt ozt ០,០៣១១០៣៤៧៦៨
other carat carat ០,០០០២


TORQUE
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/N·m combinations
Industrial
SI newton metre Nm N·m Triple combinations are also possible. See the full list. 1
  • Nm kg-m
  • Nm ft-lb
Non-SI metric kilogram-meter kg-m kg-m 9.80665
  • kg-m Nm
  • kg-m ft-lb
Imperial
&
US customary
foot-pound ft-lb ft-lb 1.3558
  • ft-lb Nm
  • ft-lb kg-m
Scientific
SI newton metre N-m N·m Triple combinations are also possible. See the full list. 1
  • N-m kgf-m
  • N-m lbf-ft
Non-SI metric kilogram-force meter kgf-m kgf·m 9.80665
  • kgf-m N-m
  • kgf-m lbf-ft
Imperial
&
US customary
pound-foot lbf-ft lbf·ft 1.3558
  • lbf-ft N-m
  • lbf-ft kgf-m
PRESSURE
unit unit-
code
abbrev-
iation
conversion factor/Pa
gigapascal GPa GPa ១០០០០០០០០០
megapascal MPa MPa ១០០០០០០
kilopascal kPa kPa ១០០០
hectopascal hPa hPa ១០០
pascal Pa Pa
millipascal mPa mPa ០,០០១
millibar mbar mbar ១០០
mb mb
decibar dbar dbar ១០០០០
bar bar bar ១០០០០០
kilobarye kBa kBa ១០០
barye Ba Ba ០,១
standard atmosphere atm atm ១០១៣២៥
torr Torr Torr (២០២៦៥/១៥២)
millimetre of mercury mmHg mmHg ១៣៣,៣២២៣៨៧៤១៥
inch of mercury inHg inHg ៣៣៨៦,៣៨៨៦៤០៣៤១
pound per square inch psi psi (444,822,161.52605
/ 64,516)
FUEL EFFICIENCY
unit unit-
code
notes combinations
kilometres per litre km/l (km/L) Use km/L to get "km/L"
  • km/l mpgimp
  • km/l mpgus
litres per 100 kilometres l/100 km (L/100 km) Use L/100 km to get "L/100 km"
  • l/100 km mpgimp
  • l/100 km mpgus
litres per kilometre l/km (L/km) Use L/km to get "L/km"
  • l/km impgal/mi
  • l/km usgal/mi
miles per imperial gallon mpgimp
  • mpgimp mpgus
miles per US gallon mpgus (mpgUS, mpgU.S.) Use mpgUS to get "US"

Use mpgU.S. to get "U.S."
mpgus will give "U.S." if spelling is
set to US & "US" otherwise

  • mpgus mpgimp
imperial gallons per mile impgal/mi
  • impgal/mi
US gallons per mile usgal/mi (USgal/mi, U.S.gal/mi) As above with the us vs US vs U.S.
  • usgal/mi
The mpgUS, mpgU.S., USgal/mi vs U.S.gal/mi, km/L, L/100 km and L/km variants work within combinations also (making 36 combinations in total).
POWER
Watts, kilowatts, milliwatts, etc. are supported. As is horsepower (English & metric). Use standard abbreviations as input code (lowercase hp for horsepower, for example)
POPULATION DENSITY
unit unit-
code
notes combinations
inhabitants per square kilometre PD/sqkm PD stands for population density, i.e. humans (inhabitants)
  • PD/sqkm PD/sqmi
per square kilometre /sqkm Used when the word 'inhabitants' would be inappropriate.
  • /sqkm /sqmi
inhabitants per hectare PD/ha
  • PD/ha PD/acre
per hectare /ha
  • /ha /acre
inhabitants per square mile PD/sqmi PD stands for population density, i.e. humans (inhabitants)
  • PD/sqmi PD/sqkm
per square mile /sqmi Used when the word 'inhabitants' would be inappropriate.
  • /sqmi /sqkm
inhabitants per acre PD/acre
  • PD/acre PD/ha
per acre /acre
  • /acre /ha
COST PER UNIT MASS
unit unit-
code
notes combinations
dollars per pound $/lb "$" can mean US$, HK$, etc.
  • (none)
dollars per kilogram $/kg
  • (none)
dollars per troy ounce $/ozt 12 troy ounces in 1 troy pound
  • (none)

Examples[កែប្រែ]

See also[កែប្រែ]

  • {{Convinfobox}} for use in infoboxes
  • {{Bbl to t}} for converting barrel of oil to tonnes
  • {{CwtQtrLb to kg}} for converting long hundred weights, quarters and pounds into kilograms
  • {{Decdeg}} for converting degrees, minutes and seconds to decimal degrees
  • {{HMS2Deg}} for converting hour angles, given in hours, minutes and seconds, to decimal degrees
  • {{Miles-chains}} for converting miles and chains to kilometres linking "chains"
  • {{Pop density}} for converting a population and area to a density
  • {{Inflation}} for calculating inflation of Consumer Price Index related prices
  • {{Metricate}}
  • {{RailGauge}} for converting rail (track) gauges
  • {{Convert/scale}} with custom formula for converting any linearly related units
  • Bug 235: Auto unit conversion