টেমপ্লেট:রূপান্তর

এই টেমপ্লেটটি স্থানান্তর করা থেকে সুরক্ষিত।
এই টেমপ্লেটটি সুরক্ষিত।
উইকিপিডিয়া, মুক্ত বিশ্বকোষ থেকে
(টেমপ্লেট:Convert থেকে পুনর্নির্দেশিত)
টেমপ্লেট নথি[দেখুন] [সম্পাদনা] [ইতিহাস] [শোধন]

Template {{convert}} calculates from one measurement unit to another one, and then presents the results formatted. For example:

{{convert|2|km|mi}} → ২ কিলোমিটার (১.২ মা) (km entered, so converted into mile)
{{convert|7|mi|km}} → ৭ মাইল (১১ কিমি) (mi entered, so converted into km)

Numbers can be rounded, units can be abbreviated into symbols:

{{convert|2|km|mi|2|abbr=on}} → ২ কিমি (১.২৪ মা)
{{convert|7|mi|km|2|abbr=on}} → ৭ মা (১১.২৭ কিমি)

Value ranges can be entered using |to|... or |-|...:

{{convert|2|to|5|km|mi}} → ২ থেকে ৫ কিলোমিটার (১.২ থেকে ৩.১ মা)
{{convert|2|-|5|km|mi}} → ২–৫ কিলোমিটার (১.২–৩.১ মা)

Combined effect example:

{{convert|2|-|5|km|mi|2|abbr=on}} → ২–৫ কিমি (১.২৪–৩.১১ মা)
{{convert|2|and|5|km|mi|sigfig=3|abbr=off}} → ২ এবং ৫ কিলোমিটার (১.২৪ এবং ৩.১১ মাইল)

Units to convert

Enter units to convert from into:

  • {{convert|1|lb|kg}} → ১ পাউন্ড (০.৪৫ কেজি)
SI units generally accept prefixes, like "m" for milli (10−3), and "M" for mega (106)
For "per" units, use "/" (slash): kg/ha
For three-unit units, etc., see বিষয়শ্রেণী:Convert-like templates

Unit name or symbol (abbreviation): 1 pound or 1 lb?

By default, the first quantity shows the unit name, the second shows the symbol (or abbreviation):

  • {{convert|1|lb|kg}} → ১ পাউন্ড (০.৪৫ কেজি)

Using |abbr=in is the reverse behaviour to the default:

  • {{convert|1|lb|kg|abbr=in}} → ১ পা (০.৪৫ কিলোগ্রাম)

To abbreviate both or neither:

  • {{convert|1|lb|kg|abbr=on}} → ১ পা (০.৪৫ কেজি)
  • {{convert|1|lb|kg|abbr=off}} → ১ পাউন্ড (০.৪৫ কিলোগ্রাম)

Convenience: {{cvt}} has |abbr=on by default

Template {{cvt}} is the same as {{convert}}, except that it has |abbr=on as the default behaviour. In {{cvt}}, all other options are available. So:

{{cvt|1|lb|kg}} → ১ পা (০.৪৫ কেজি)

is equivalent to:

{{convert|1|lb|kg|abbr=on}} → ১ পা (০.৪৫ কেজি)

Adjective: a 10-mile distance

Use |adj=on to produce the adjectival (hyphenated) form:

  • A {{convert|10|mi|km|adj=on}} distance → A ১০-মাইল (১৬ কিমি) distance.

Default behaviour, for comparison:

  • {{convert|10|mi|km}} to go → ১০ মাইল (১৬ কিমি) to go.

|adj=on does not produce hyphens with unit symbols, as per Manual of Style:

  • A {{convert|9|in|cm|adj=on|abbr=on}} nail → A ৯ ইঞ্চি (২৩ সেমি) nail.

Rounding: 100 ft is 30 m or 30.5 m or 30.48 m?

By definition, 100 ft equals ৩০.৪৮ মি. In practical use, it is common to round the calculated metric number. With that, there are several possibilities.

Default rounding

By {{Convert}} default, the conversion result will be rounded either to precision comparable to 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 digits, whichever is more precise. An exception to this is rounding temperatures (see below).

Examples of rounding
Input Displays as Note
{{convert|123|ft|m|-1}} ১২৩ ফুট (৪০ মি)
{{convert|123|ft|m}} ১২৩ ফুট (৩৭ মি) same output as with 0 (below)
{{convert|123|ft|m|0}} ১২৩ ফুট (৩৭ মি)
{{convert|123|ft|m|1}} ১২৩ ফুট (৩৭.৫ মি)
{{convert|123|ft|m|2}} ১২৩ ফুট (৩৭.৪৯ মি) The more-exact value is 37.4904 m or so, which gets converted to 37 m if this parameter is not specified at all.
{{convert|500|ft|m|-1}} ৫০০ ফুট (১৫০ মি)
{{convert|500|ft|m}} ৫০০ ফুট (১৫০ মি) same output as with −1 (above), because the conversion factor is between 0.2 and 2 (hence, it should produce same double-zero precision (−2) as in the input value), but the conversion must produce two significant digits at a minimum (hence, a higher single-zero precision (−1) is used)
{{convert|500|ft|m|0}} ৫০০ ফুট (১৫২ মি)
{{convert|500|ft|m|1}} ৫০০ ফুট (১৫২.৪ মি)
{{convert|500|ft|m|2}} ৫০০ ফুট (১৫২.৪০ মি) exact value is 152.4 m
{{convert|500|ft|cm|-3}} ৫০০ ফুট (১৫,০০০ সেমি)
{{convert|500|ft|cm}} ৫০০ ফুট (১৫,০০০ সেমি) same output as with −3 (above), because the conversion factor is between 20 and 200 (hence, it should decrease input value's double-zero precision (−2) by 2), but the conversion must produce two significant digits at a minimum (hence, a higher triple-zero precision (−3) is used)
{{convert|500|ft|cm|0}} ৫০০ ফুট (১৫,২৪০ সেমি)

Convert supports four types of rounding:

Round to a given precision: use a precision number

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 multiple of ১০ to the power of 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.

Round to a given number of significant figures: |sigfig=

To specify the output number to be with n significant figures use |sigfig=<number>:

  • {{convert|1200|ft|m|sigfig=4}} → ১,২০০ ফুট (৩৬৫.৮ মি)
  • {{convert|1200|ft|m|sigfig=3}} → ১,২০০ ফুট (৩৬৬ মি)
  • {{convert|1200|ft|m|sigfig=2}} → ১,২০০ ফুট (৩৭০ মি)
  • {{convert|1200|ft|m|sigfig=1}} → ১,২০০ ফুট (৪০০ মি)

Default behaviour, for comparison:

  • {{convert|1200|ft|m}} → ১,২০০ ফুট (৩৭০ মি)

Setting |sigfig= to a value less than 1 is meaningless:

  • {{convert|1200|ft|m|sigfig=0}} → ১,২০০ ফুট (৩৭০ মি)* Red XN

Round to a multiple of 5: 15, 20, 25, ...

Using |round=5 rounds the outcome to a multiple of 5.

  • {{convert|10|m|ft}} → ১০ মিটার (৩৩ ফু)
  • {{convert|10|m|ft|round=5}} → ১০ মিটার (৩৫ ফু)

Similar: using |round=25 rounds the outcome to a multiple of 25.

  • {{convert|10|m|ft}} → ১০ মিটার (৩৩ ফু)
  • {{convert|10|m|ft|round=25}} → ১০ মিটার (২৫ ফু)

Default behaviour, for comparison:

  • {{convert|10|m|ft|sigfig=4}} → ১০ মিটার (৩২.৮১ ফু)

In a range, one can round each value individually to the default. Use |round=each:

  • {{convert|10 x 200 x 3000|m|ft}} → ১০ বাই ২০০ বাই ৩,০০০ মিটার (৩৩ ফু × ৬৫৬ ফু × ৯,৮৪৩ ফু)
  • {{convert|10 x 200 x 3000|m|ft|round=each}} → ১০ বাই ২০০ বাই ৩,০০০ মিটার (৩৩ ফু × ৬৬০ ফু × ৯,৮০০ ফু)

Round to a multiple of a given fraction: +১৬ inch

Specify the desired denominator using |frac=<some positive integer>. (Denominator is the below-the-slash number, for example the 3 in ).

  • {{convert|5.56|cm|in|frac=16}}৫.৫৬ সেন্টিমিটার (+১৬ ইঞ্চি)
  • {{convert|8|cm|in|frac=4}}৮ সেন্টিমিটার (+ ইঞ্চি)

The fraction is reduced when possible:

  • {{convert|8|cm|in|frac=100}}৮ সেন্টিমিটার (+২০ ইঞ্চি)

Default behaviour uses decimal notation:

  • {{convert|5.56|cm|in}} → ৫.৫৬ সেন্টিমিটার (২.১৯ ইঞ্চি)

Rounding temperatures: °C, °F and K

In temperatures, the conversion will be rounded either to the 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.

  1. {{convert|10,000|C|F K}} → ১০,০০০ °সে (১৮,০০০ °ফা; ১০,৩০০ K)
  2. {{convert|10,000.1|C|F K}} → ১০,০০০.১ °সে (১৮,০৩২.২ °ফা; ১০,২৭৩.২ K)
  3. {{convert|-272|C|F K}} → −২৭২ °সে (−৪৫৭.৬০ °ফা; ১.১৫ K)
  4. {{convert|-272|C}} → −২৭২ °সে (−৪৫৭.৬০ °ফা)
  5. {{convert|100|C|F K}} → ১০০ °সে (২১২ °ফা; ৩৭৩ K)
  6. {{convert|0|C|F K}} → ০ °সে (৩২ °ফা; ২৭৩ K)

The precision of the input number in example (1) is one digit, but the precision of its Kelvins expression is three, so the precision of the Fahrenheit conversion is made three (made 180...) . (1) and (2) seem to belie the fact that a ০.১ degrees Celsius change is a ০.১৮ degrees Fahrenheit change, and make the 32 degrees difference shown in (1) begin to seem off somehow. Result (1) seems off until you set the significant figures yourself with |sigfig=:

{{convert|10000|C|sigfig=5}} → ১০,০০০ °সে (১৮,০৩২ °ফা)

or you set the precision positionally, relative to the decimal point (zero being at the decimal point):

{{convert|10000|C|0}} → ১০,০০০ °সে (১৮,০৩২ °ফা)

The precision of the input number in example (2) is six, so the precision of the Fahrenheit output is, whereas before, Kelvins had determined it to be three. Examples (3) and (4) show how this can be hidden and generate questions, but it occurs there because the Kelvins conversion generated two fractional parts. (Before it was the input number that generated the fractional part.) In example (3) the three input digits converted into five significant output digits because of the two digits after the decimal point, generated by the Kelvins conversion. This happened again in (5), but in (6) decimal fractions were neither given as input nor induced by the Kelvins conversion.

Rounding input

There is limited support for rounding the displayed input number. The rounding takes place after conversion, so the output is based on the full-precision input. This is useful when the input is produced by {{#expr:}} or otherwise available to a higher precision than is usefully displayed, and it's desirable to avoid double-rounding.

To round the input to a specified number of digits after the decimal point, use one of the parameters:

  • |adj=ri0
  • |adj=ri1
  • |adj=ri2
  • |adj=ri3

Note that there is no |adj=ri-1Red XN or similar for rounding above the decimal place. Neither is there support for significant figures, multiples of 5, or any other output-rounding feature.

The default precision is computed based on the input, so an explicit output precision must usually be supplied:

  • {{convert|4.14159|mi|km|adj=ri0}} → ৪ মাইল (৬.৬৬৫২৪ কিমি) Red XN (precisions are mismatched)
  • {{convert|4.14159|mi|km|0|adj=ri0}} → ৪ মাইল (৭ কিমি) Green tickY

In this case, if the input were rounded before conversion, a different result would be obtained:

  • {{convert|{{#expr:4.14159 round 0}}|mi|km|0}} → ৪ মাইল (৬ কিমি) Red XN (double rounding)

Into multiple units: ১০ °সে (৫০ °ফা; ২৮৩ K)

Separate the multiple output units by a space:

  • {{convert|10|C|F K}} → ১০ °সে (৫০ °ফা; ২৮৩ K)
  • {{convert|5|km|mi nmi}} → ৫ কিলোমিটার (৩.১ মা; ২.৭ নটিক্যাল মাইল)

If the output unit names contain spaces, use + as the separator.

See also:

Ranges of values

A range converts two values and separates them by your choice of words and punctuation.

A range: 6 to 17 kg (13 to 37 lb)

Range indicators are entered as the second parameter (between the values). Range separators can be:
টেমপ্লেট:Convert/doc/range separator list

Multiple dimensions: ৬ মি × ১২ মি (২০ ফু × ৩৯ ফু)

Use by:

  • {{convert|6|by|12|ft|m}} → ৬ বাই ১২ ফুট (১.৮ বাই ৩.৭ মি)

Use ×, multiplication sign, or x, letter:

  • {{convert|6|x|12|m|ft}} → ৬ বাই ১২ মিটার (২০ ফু × ৩৯ ফু)

In science, the formal way is to set |x| and |abbr=on (keeping dimensions right, like in area = x km2):

  • {{convert|6|x|12|m|ft|abbr=on}} → ৬ মি × ১২ মি (২০ ফু × ৩৯ ফু)

Lists of values: 20, 40, or 60 miles

{{convert|20|,|40|, or|60|mi}} → ২০, ৪০, অথবা ৬০ মাইল (৩২, ৬৪, অথবা ৯৭ কিমি)

About feet, inch in ranges and multiples

While it is possible to enter feet, inch in a simple conversion, this is not possible for ranges:

Default behaviour, for comparison:

  • {{convert|1|ft|3|in|mm}} → ১ ফুট ৩ ইঞ্চি (৩৮০ মিমি)

Words

Spelling of unit name: international metre or US meter?

Default spelling of units is in the en (generic) locale. To show en-US spelling, use |sp=us:

{{convert|1|m|ft}} → ১ মিটার (৩.৩ ফু)—default
{{convert|1|m|ft|sp=us}} → ১ মিটার (৩.৩ ফু)

Spell out numbers: ten miles

To write a number in words, use |spell=in:

  • {{convert|10|mi|m|spell=in}} → দশ মাইল (১৬,০০০ মি)

To spell out both in and out values, use |spell=on:

  • {{convert|10|mi|m|spell=on}} → দশ মাইল (ষোল হাজার মিটার)

To make first letter a capital, use |spell=In, |spell=On

  • {{convert|10|mi|m|spell=In}} → দশ মাইল (১৬,০০০ মি)
  • {{convert|10|mi|m|spell=On}} → দশ মাইল (ষোল হাজার মিটার)

Remember that the spelling of the units (ft, m) is independently set by |abbr=. To the extreme:

  • {{convert|10|mi|m|spell=on|abbr=off|sp=us}} → দশ মাইল (ষোল হাজার মিটার)

Inserted before units: 4 planted acres

  • {{convert|4|acre||adj=pre|planted}} → ৪ planted একর (১.৬ হেক্টর)

disp=preunit is similar, but has no separator after the specified text, and can have different text for the output value:

  • {{convert|4|acre||disp=preunit|planted }} → ৪ planted একর (১.৬ planted হেক্টর)
  • {{convert|4|acre||disp=preunit|planted |reforested-}} → ৪ planted একর (১.৬ reforested-হেক্টর)

After adjective unit: A ১০-ফুট-long corridor

Note that two units (in this case, ft and m) are required. Use with just one unit will generate an error message.

{{convert|10|ft|m|adj=mid|-long}} → ১০-ফুট-long (৩.০ মি)

Plurals: 1 inch, 2 inches

The unit symbol is singular always. Depending on the preceding number only, a unit name can be shown plural.

Exception

Entering the unit spelled |foot| forces singular output "foot", whatever the number is.

  • {{convert|100|foot|abbr=off}} → ১০০ foot (৩০ মিটার)

Fractions: one-eighth of an imperial pint

The convert template also supports spelling out fractions.

  • {{convert|3+1/2|oz|g|spell=in}} → তিন and a half আউন্স (৯৯ গ্রাম)

Any additional words needed for the fraction can also be added at the end of the template.

  • {{convert|1/8|imppt|ml|spell=in|adj=pre|of an}} → one-eighth of an imperial pint (৭১ মিলি)

Wrapping and line breaking

See Help:Convert § Wrapping and line breaking

Spelling out "thousands", "millions", etc.

Most unit codes accept a prefix of e3 (thousand) or e6 (million) or e9 (billion).

  • {{convert|100|e6mi|e6km}} → ১০০ নিযুত মাইল (১৬০×১০^ কিমি)
  • {{convert|120|e6acre}} → ১২০ নিযুত একর (৪,৯০,০০০ কিমি)
  • {{convert|120|e6acre|e3km2}} → ১২০ নিযুত একর (৪৯০×১০^ কিমি)

To display both input and output in scientific notation, use |abbr=on

  • {{convert|100|e6mi|e6km|abbr=on}} → ১০০×১০^ মা (১৬০×১০^ কিমি)

To spell out "thousands", "millions", etc., |abbr=unit abbreviates the unit; |abbr=off displays both full unit names.

  • {{convert|100|e6mi|e6km|abbr=unit}} → ১০০ নিযুত মা (১৬০ নিযুত কিমি)
  • {{convert|100|e6mi|e6km|abbr=off}} → ১০০ নিযুত মাইল (১৬০ নিযুত কিলোমিটার)

Numbers

Using an SI prefix: gigameter (Gm), or micrometer (μm)

টেমপ্লেট:Sidebar metric prefixes (small) Units can have an SI prefix like G before the unit: Gm, and giga before the name: gigameter. These are plain multiplication factors.

To illustrate, these are trivial calculations (from meter to meter), showing the multiplication factor:

  • ১২ গিমি (১.২×১০১০ মি)
  • ১২ মাইমি (১.২×১০−৫ মি)

The prefix can be added before the SI unit (here: unit m for meter):

  • {{convert|12|Gm|mi|abbr=on}} → ১২ গিমি (৭৫,০০,০০০ মা)
  • Mm: ১২ মেমি (৭,৫০০ মা)
  • km: ১২ কিমি (৩৯,০০০ ফু)
  • mm: ১২ মিমি (০.৪৭ ইঞ্চি)
  • μm: ১২ মাইমি (০.০১২ মিমি)
  • um: ১২ মাইমি (০.০১২ মিমি) (letter "u" can be used for "μ" here)

The prefix can be used in the output unit:

  • {{convert|12000|mi|Mm|abbr=on}} → ১২,০০০ মা (১৯ মেমি)
  • {{convert|12|in|μm|abbr=on}} → ১২ ইঞ্চি (৩,০০,০০০ মাইমি)

As an exception, the non-SI unit "inch" can have the "μ" prefix too:

  • {{convert|12|μm|μin|abbr=on}} → ১২ মাইমি (৪৭০ µin)

Engineering notation: 7 × 106 m

In the unit: e6m

Engineering notation can be entered as a "prefix" to the unit:

  • {{convert|70|e6m}} → ৭০×১০^ মি (২৩,০০,০০,০০০ ফু)

The same is possible for the output unit:

  • {{convert|23,000,000|ft|e6m}} → ২,৩০,০০,০০০ ফুট (৭.০×১০^ মি)

Any standard unit (not a combination, multiple, or built-in unit) can have such a prefix:

  • e3 (thousand),
  • e6 (million),
  • e9 (billion),
  • e12 (trillion),
  • e15 (quadrillion).

Scientific notation: 1.23 × 10−14

In scientific notation, a number is written like ১.২৩×১০−১৪. The plain number has exactly one digit before the decimal point.

With {{convert}}, the input can be in e-notation such as 12.3e4. This value is displayed as a power of ten, and the output is displayed in scientific notation, except that an output value satisfying 0.01 <= v < 1000 is shown as a normal number. In addition, if the output value is 1000 and sigfig=4 is used, the value is displayed as a normal number.

  • {{convert|12.3e-15|atm|atm|abbr=on}} → ১২.৩×১০−১৫ atm (১.২৩×১০−১৪ atm)
  • {{convert|0.00000005|atm|atm|abbr=on}} → ০.০০০০০০০৫ atm (৫.০×১০−৮ atm)

Input with fractions: + ইঞ্চি (৩৮.১ মিমি)

The number to convert can be written in fractions. Both / (keyboard slash) and (fraction slash) are accepted:

  • {{convert|1/2|in|mm|1}} ইঞ্চি (১২.৭ মিমি)
  • {{convert|1⁄2|in|mm|1}} ইঞ্চি (১২.৭ মিমি)

With positive mixed numbers (a positive integer and a fraction), use a + sign

  • {{convert|2+1⁄2|in|mm|1}}+ ইঞ্চি (৬৩.৫ মিমি)

With negative mixed numbers, use a hyphen - and repeat it:

  • {{convert|-2-1⁄2|in|mm|1}}−২+ ইঞ্চি (−৬৩.৫ মিমি)

Note that the following cases are not interpreted as mixed numbers:

  • {{convert|2-1⁄2|in|mm|1}}২– ইঞ্চি (৫০.৮–১২.৭ মিমি). This is interpreted as a range from 2 inches to 1⁄2 inch.
  • {{convert|-2+1⁄2|in|mm|1}}[রূপান্তর: অকার্যকর সংখ্যা] Red XN This is neither a mixed number nor a range, and mathematical expressions requiring calculations are not allowed here.

Output with horizontal fraction bar in: +/ inch

Using a double slash (//) returns a horizontal bar fraction:

  • {{convert|1//2|in|mm|1}}/ ইঞ্চি (১২.৭ মিমি)
  • {{convert|2+1//2|in|mm|1}}+/ ইঞ্চি (৬৩.৫ মিমি)

Thousands separator: 1,000 mi or 1000 mi

In input, a comma for thousands separator is accepted but not required; a gap (space) is not accepted. In output, by default, the thousand separator is the comma:

Set |comma=off to remove the separator from the output:

  • {{convert|1234567|m|ft|comma=off}} → ১২৩৪৫৬৭ মিটার (৪০৫০৪১৭ ফু)

Use |comma=gaps to use digit grouping by gap (thin space) as a thousands separator:

  • {{convert|1234567|m|ft|comma=gaps}}১২৩৪৫৬৭ মিটার (৪০৫০৪১৭ ফু)

Default behaviour, for comparison:

  • {{convert|1234567|m|ft}} → ১২,৩৪,৫৬৭ মিটার (৪০,৫০,৪১৭ ফু)

Setting |comma=5 will only add the separator when the number of digits is 5 or more:

  • {{convert|1234|m|ft|comma=5}} → ১২৩৪ মিটার (৪০৪৯ ফু)
  • {{convert|1234567|m|ft|comma=5}} → ১২,৩৪,৫৬৭ মিটার (৪০,৫০,৪১৭ ফু)

Default behaviour, for comparison:

  • {{convert|1234|m|ft}} → ১,২৩৪ মিটার (৪,০৪৯ ফু)

Output manipulation

Brackets and separators: 10 m [33 ft]

Punctuation that distinguishes the two measurements is set by |disp=.
Options are: b (the default), sqbr, comma, or, br, x|…:

  • {{convert|10|m|ft|disp=sqbr}} → ১০ মিটার [৩৩ ফু]
  • {{convert|10|m|ft|disp=comma}} → ১০ মিটার, ৩৩ ফু
  • {{convert|10|m|ft|disp=or}} → ১০ মিটার অথবা ৩৩ ফুট

Default behaviour, for comparison:

  • {{convert|10|m|ft}} → ১০ মিটার (৩৩ ফু)

Setting |disp=br will force a new line (<br/>)

  • {{convert|10|m|ft|disp=br}} → ১০ মিটার
    ৩৩ ফুট

Also |disp=br() will force a new line, and keep the brackets (useful in tables):

  • {{convert|10|m|ft|disp=br()}} → ১০ মিটার
    (৩৩ ফুট)

Setting |disp=x|… allows any text as separator:

  • {{convert|10|m|ft|disp=x|_MyText_}} → ১০ মিটার_MyText_৩৩ ফু (To display spaces, use &nbsp;)

Flipping (reordering) the two measurements: ১,৬০৯.৩ মিটার (১ মাইল)

Setting |order=flip will flip (swap) the two measurements:

  • {{convert|1|mi|m|order=flip}} → ১,৬০৯.৩ মিটার (১ মাইল)

Default behaviour, for comparison:

  • {{convert|1|mi|m}} → ১ মাইল (১,৬০৯.৩ মিটার)

When converting to multiple units, the effect is:

  • {{convert|10|km|mi nmi|order=flip}} → ৬.২১৩৭ মাইল; ৫.৩৯৯৬ নটিক্যাল মাইল (১০ কিলোমিটার)
  • {{convert|10|km|nmi mi|order=flip}} → ৫.৩৯৯৬ নটিক্যাল মাইল; ৬.২১৩৭ মাইল (১০ কিলোমিটার)

Fixed ordering of output units: ২১২ °ফা (১০০ °সে; ৩৭৩ K)

Setting |order=out shows the output-units as ordered; the input unit is skipped:

  • {{convert|100|C|F C K|abbr=on|order=out}} → ২১২ °ফা (১০০ °সে; ৩৭৩ K)
  • {{convert|200|PS|kW hp|0|abbr=on|order=out}} → ১৪৭ কিওয়াট (১৯৭ অশ্বশক্তি)

See also: § Displaying parts of the output.

Displaying parts of the result: ২ (১.৫)

It is possible to display only parts of the conversion result:

Convert Output Returns
{{convert|2|cuyd|m3}} ২ cubic yard (১.৫ মি) Regular output (for comparison)
{{convert|2|cuyd|m3|abbr=values}} ২ (১.৫) Input and output numbers
{{convert|2|cuyd|m3|disp=unit}} cubic yard Input unit
{{convert|2|cuyd|m3|disp=unit|adj=on}} cubic-yard Input unit, adjective (hyphenated)
{{convert|2|cuyd|cuyd|disp=out}} ২.০ cu yd Input (workaround. Note repetition of unit in input)
{{convert|2|cuyd|m3|abbr=~}} ২ cubic yard [cu yd] (১.৫ মি) Input: both name and symbol
{{convert|2|cuyd|m3|disp=unit2}} মি Output unit (symbol)
{{convert|2|cuyd|m3|disp=unit2|abbr=off}} ঘনমিটার Output unit (name)
{{convert|2|cuyd|m3|disp=number}} ১.৫ Output value
{{convert|2|cuyd|m3|disp=out}} ১.৫ মি Output value and unit name
{{convert|2|cuyd|m3|disp=out|abbr=off}} ১.৫ ঘনমিটার Output value and unit symbol

Display both input name and symbol: 2 kilopascals [kPa]

Setting |abbr=~ returns both name and symbol of the first (input) unit:

  • {{convert|2|kPa|psi|abbr=~}} → ২ কিলোpascal [কিPa] (০.২৯ psi)
  • A {{convert|2|kPa|psi|abbr=~|adj=on}} pressureA ২-কিলোpascal [কিPa] (০.২৯ psi) pressure

Table options

For the wikitable structure, there are three options: add a line-break, split the result over columns and make the table sortable.

Enforced line break

|disp=br adds a line-break and omits brackets.

|disp=br() adds a line-break and does add brackets to the converted value. This may be useful in tables:

|disp=br |disp=br()
১০০ কিলোমিটার
৬২ মাইল
১০০ কিলোমিটার
(৬২ মাইল)

Table columns

Using {convert} in a table cell, with |disp=table splits the result over two (or more) columns. By default units are not included in the table, however, they can be added using the |abbr= parameter. Multiple-unit outputs, like ftin, always output their units to the table.

{{convert|10|m|ft|disp=table}}

style="text-align:right;"|১০ |style="text-align:right;"|৩৩

|disp=tablecen does the same, and also centers the text:

{{convert|20|m|ft|disp=tablecen}}

style="text-align:center;"|২০ |style="text-align:center;"|৬৬

The units are added as a column header:

  metres feet feet and inches
|disp=table ১০ ৩৩ ৩২ ফু ১০ ইঞ্চি
|disp=table and |abbr=on ২০ মি ৬৬ ফু ৬৫ ফু ৭ ইঞ্চি
|disp=table and |abbr=off ৩০ মিটার ৯৮ ফুট ৯৮ ফুট ৫ ইঞ্চি
|disp=tablecen ৪০ ১৩০ ১৩১ ফু ৩ ইঞ্চি
|disp=<other> (default) ৫০ মিটার (১৬০ ফু; ১৬৪ ফু ১ ইঞ্চি)

Sorting

Use |sortable=on to include a hidden numerical sortkey in the output, suitable for use in a table with sortable columns. Technically, this places a hidden string before the actual displayed values:

{{convert|10|m|ft|sortable=on}} <span data-sort-value="7001100000000000000♠"></span>10 metres (33 ft)
showing: ১০ মিটার (৩৩ ফু).

Use both |disp=table and |sortable=on together to produce table columns (pipe symbols) for each value in sortable columns:

m ft
A ১৫+ ৫২
B ১৫.৫ ৫১
C ১৬.০ ৫২.৫
D ১৬ ৫২

The generated sortkey is calculated in a consistent way based on both the value and its unit as passed to the convert template. In most cases convert uses the passed value converted to SI base units. It is therefore not necessarily the displayed value or other alternate units and is calculated regardless of output format options. Using different units or different order of units in individual rows should therefore not lead to incorrect sorting, although variations in rounding can give surprising results, since an unrounded number is used for the sortkey.

Units

The conversion factors and physical constants are sourced here.

All units

See also: Convert/list of units
টেমপ্লেট:Convert/list of units/density/short list
{{Convert}}-এ ব্যবহার যোগ্য এককের সংক্ষিপ্ত তালিকা
ব্যাখ্যা
পদ্ধতি একক সংকেত
(বদল)
প্রতীক/সংক্ষেপ তথ্য পরিবর্তন গুণিতক ব্যবহার
যে পদ্ধতিতে এই একক ব্যবহার হয় নামের ক্রমানুসারে একক এই টেমপ্লেট ব্যবহারের জন্য যে সংকেত ব্যবহার করতে হবে টেমপ্লেটে যে ভাবে এই প্রতীক/সংক্ষেপ দেখা যাবে সাধারণভাবে বা বিশেষ ক্ষেত্রে এই টেমপ্লেটে এককের ব্যবহার সম্পর্কিত তথ্য SI মূল একক থেকে বা প্রতি পরিবর্তনের যে গুণিতক এই টেমপ্লেটে ব্যবহার হয়েছে একাধিক পরিবর্তনের সংকেত


দৈর্ঘ্য
(পূর্ণ তালিকা)
প্রথা একক সংকেত
(বিকল্প)
সংক্ষেপ টিকা conversion factor/m combinations
এসআই মেগামিটার Mm Mm US spelling: megameter
১০,০০,০০০
কিলোমিটার km কিমি US spelling: kilometer
১,০০০
  • km mi
মিটার m মিটার US spelling: meter
  • m ft
  • m ftin
centimet{{{r}}} cm cm US spelling: centimeter
০.০১
  • cm in
মিলিমিটার mm মি.মি. US spelling: millimeter
০.০০১
  • mm in
মাইক্রোমিটার μm (um) µm US spelling: micrometer
০.০০০০০১
ন্যানোমিটার nm nm US spelling: nanometer
০.০০০০০০০০১
এসআই মেট্রিক না অ্যাংস্ট্রম Å
(angstrom)
Å ০.০০০০০০০০০১
সার্বভৌম
&
মার্কিন গতানুগতিক
মাইল mi মা ১,৬০৯.৩৪৪
  • mi km
ফার্লং furlong ২০১.১৬৮
চেন chain ২০.১১৬৮
রড rd rd For other names of this unit see the full list. ৫.০২৯২
ফ্যাদম fathom assumes 1 fathom ≡ 6 ft ১.৮২৮৮
গজ yd yd assumes the international definition ০.৯১৪৪
ফুট ft (foot) ft code "foot" will show "foot" if plural.

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

০.৩০৪৮
  • ft m (foot m)
হাত hand h ০.১০১৬
ইঞ্চি in ইঞ্চি ০.০২৫৪
  • in cm
  • in mm
অন্যান্য নটিক্যাল মাইল nmi nmi the international standard nautical mile
For other nautical miles see the full list.
১,৮৫২
পারসেক pc pc ৩.০৮৫৬৭৭৫৮১৪৬৭২০×১০^16
আলোকবর্ষ ly ly ৯.৪৬০৭৩০৪৭২৫৮০৮×১০^15
জ্যোতির্বিদ্যার একক AU AU ১,৪৯,৫৯,৭৮,৭০,৭০০


AREA
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/m2 combinations
SI square kilomet{{{r}}} km2 km2 US spelling: square kilometer
১০,০০,০০০
  • km2 sqmi
square met{{{r}}} m2 m2 US spelling: square meter
  • m2 sqft
square centimet{{{r}}} cm2 cm2 US spelling: square centimeter
০.০০০১
  • cm2 sqin
square millimet{{{r}}} mm2 mm2 US spelling: square millimeter
০.০০০০০১
  • mm2 sqin
non-SI metric hectare ha ha ১০,০০০
Imperial
&
US customary
বর্গ মাইল sqmi বর্গ মাইল ২৫,৮৯,৯৮৮.১১০৩৩৬
  • sqmi km2
একর acre {{{u}}} ৪,০৪৬.৮৫৬৪২২
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 met{{{r}}} m3 m3 US spelling: cubic meter
one kilolitre
cubic centimet{{{r}}} cm3 cm3 US spelling: cubic centimeter
one millilitre
০.০০০০০১
cc cc
cubic millimet{{{r}}} mm3 mm3 US spelling: cubic millimeter
০.০০০০০০০০১
non-SI metric kilolit{{{r}}} kl kl US spelling: kiloliter
one cubic metre
kL kL
lit{{{r}}} 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
centilit{{{r}}} cl cl US spelling: centiliter
০.০০০০১
cL cL
millilit{{{r}}} 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 met{{{r}}} per second m/s m/s US spelling: meter per second
  • m/s ft/s (m/s foot/s)
non-SI metric kilomet{{{r}}} 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 ব্যাড রাউন্ডইং এখানে৩.৬×১০^15
TW.h TW·h
gigawatt-hour GWh GWh ব্যাড রাউন্ডইং এখানে৩.৬×১০^12
GW.h GW·h
megawatt-hour MWh MWh ৩,৬০,০০,০০,০০০
MW.h MW·h
kilowatt-hour kWh kWh ৩৬,০০,০০০
kW.h kW·h
watt-hour Wh Wh ৩,৬০০
W.h W·h
Electron-
volt
multiples
gigaelectronvolt GeV GeV ০.০০০০০০০০০১৬০২১৭৬৪৮৭
megaelectronvolt MeV MeV ব্যাড রাউন্ডইং এখানে১.৬×১০^−13
kiloelectronvolt keV keV ব্যাড রাউন্ডইং এখানে১.৬×১০^−16
electronvolt eV eV ব্যাড রাউন্ডইং এখানে১.৬×১০^−19
millielectronvolt meV meV ব্যাড রাউন্ডইং এখানে১.৬×১০^−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 ব্যাড রাউন্ডইং এখানে৪.২×১০^18
gigaton of TNT GtonTNT
megatonne of TNT MtTNT ব্যাড রাউন্ডইং এখানে৪.২×১০^15
megaton of TNT MtonTNT Mt
kilotonne of TNT ktTNT ব্যাড রাউন্ডইং এখানে৪.২×১০^12
kiloton of TNT ktonTNT kt
tonne of TNT tTNT ৪,১৮,৪০,০০,০০০
ton of TNT tonTNT
Other
Hartree Eh Eh ব্যাড রাউন্ডইং এখানে৪.৪×১০^−18
rydberg Ry Ry ব্যাড রাউন্ডইং এখানে২.২×১০^−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
lit{{{r}}}-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 কিলোগ্রাম 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
পাউন্ড 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 (২০,২৬৫/১৫২)
millimet{{{r}}} 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
প্রতি হেক্টরে অধিবাসী PD/ha
  • PD/ha PD/acre
প্রতি হেক্টরে /ha
  • /ha /acre
প্রতি বর্গমাইলে অধিবাসী PD/sqmi PD stands for population density, i.e. humans (inhabitants)
  • PD/sqmi PD/sqkm
প্রতি বর্গমাইলে /sqmi Used when the word 'inhabitants' would be inappropriate.
  • /sqmi /sqkm
প্রতি একরে অধিবাসী PD/acre
  • PD/acre PD/ha
প্রতি একরে /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)

'per' units: kg/hl, miles per gallon

When using a slash (/), a unit like kg/hl is recognized as kilograms per hectolitre and will be converted with other mass/volume units.

  • {{convert|1000|kg/hl}}লুয়া ত্রুটি মডিউল:Convert এর 670 নং লাইনে: attempt to index field 'per_unit_fixups' (a nil value)।

Population density (inhabitants per square mile) can be converted using

  • {{convert|10|PD/sqmi|PD/sqkm}} → ১০ জন/বর্গমাইল (৩.৯/কিমি)

Vehicular fuel efficiency, commonly expressed in miles per gallon or litres per 100 km can also be converted

  • {{convert|26|mpgUS|l/100km mpgimp}} → ২৬ মাইল প্রতি ইউএস গ্যালন (৯.০ লি/১০০ কিমি; ৩১ মা/ইম্পেরিয়াল গ্যালন)

Units of difference: Expressing a change or difference in temperature

We have already discussed standard temperature conversions (°C, °F, K), as shown in these two examples:

  • {{convert|10|C}} → ১০ °সে (৫০ °ফা) (standard temperature conversion)
  • {{convert|10–15|C}} → ১০–১৫ °সে (৫০–৫৯ °ফা) (standard temperature range conversion)

When expressing a temperature change (e.g., "The temperature increased by 10 °C"), or when comparing temperatures (e.g., "10 to 15 °C warmer"), we cannot use the standard temperature units (|C, |F and |K), which refer to points on the respective scale. Instead, we must use one of the following "units of difference": |C-change, |F-change and |K-change.

Compare the following two examples with the two above:

  • {{convert|10|C-change}} → ১০ °C (১৮ °F) increase in temperature
  • {{convert|10–15|C-change}} → ১০–১৫ °C (১৮–২৭ °F) warmer than normal

To produce multiple units in the output:

  • {{convert|10|C-change|F-change K-change}} → ১০ °C (১৮ °F; ১০ K) difference

Multiple units: 1 ft 5 in

In input

Base document § Input multiples lists options for multiple unit input (like ft,in). It can catch predefined sets only (units that can be subdivided; e.g., yd into ft):

  • {{convert|1|yd|2|ft|3|in}} → ১ গজ ২ ফুট ৩ ইঞ্চি (১.৬০ মি)
  • {{convert|2|ft|3|in|cm}} → ২ ফুট ৩ ইঞ্চি (৬৯ সেমি)
  • {{convert|1|lb|5|oz|g}} → ১ পাউন্ড ৫ আউন্স (৬০০ গ্রাম)

In output

Available multiple-unit output options predefined, like ftin and ydftin. The full list is at § Output multiples.

  • {{convert|2|m|ftin}} → ২ মিটার (৬ ফু ৭ ইঞ্চি)
  • {{convert|2|m|ft in}} → ২ মিটার (৬.৬ ফু; ৭৯ ইঞ্চি), using a space, returns the decimal point

Default behaviour, for comparison:

  • {{convert|2|m}} → ২ মিটার (৬ ফু ৭ ইঞ্চি)

See also:

  • {{hands}} a length used to measure horses
  • {{Long ton}} a weight in ton, cwt, qr and lb

Currency per unit: $/mi → $/km

Using currency symbols in a $ per unit value, you can convert the per-unit:

  • {{convert|10|$/mi|$/km}}লুয়া ত্রুটি মডিউল:Convert এর 670 নং লাইনে: attempt to index field 'per_unit_fixups' (a nil value)।
  • {{convert|1500|$/ozt|$/g}}লুয়া ত্রুটি মডিউল:Convert এর 670 নং লাইনে: attempt to index field 'per_unit_fixups' (a nil value)।

You can set the currency in both values using |$=€:

  • {{convert|10|$/mi|$/km|$=€}}লুয়া ত্রুটি মডিউল:Convert এর 1851 নং লাইনে: attempt to index local 'en_value' (a nil value)।

It is not possible to convert the currency. So, this result (mixed currencies) is not possible: $15 per mile (€8.6/km) Red XN

Using convert inside templates

For usage in template code, like infoboxes, {{Convert}} has these options:

Pre-formatting fraction input
Your template can accept |input=16 7/8 and use {{#invoke:Convert/helper|number|16 7/8}} → স্ক্রিপ্ট ত্রুটি: "Convert/helper" নামক কোনো মডিউল নেই।
Using a Wikidata property
  • Adding the Wikidata property code, like code |input=P2073, to your template code automatically returns the Wikidata property for that article, and convert it. Both number and unit are read.

Note: to return that property value for an other article, use |qid=.

Example for vehicle range (P2073): Note: this example uses |qid=Q1056131 (testing for (Q1056131))

  • {{convert|input=P2073|qid=Q1056131|ftin|abbr=on}} → ১,৫০০ মা (৭৯,২০,০০০ ফু ০ ইঞ্চি)
  • {{convert|input=P2073|qid=Q1056131|km|abbr=on}} → ১,৫০০ মা (২,৪০০ কিমি)
  • {{convert|input=P2073|qid=Q1056131|km|abbr=on|disp=out}} → ২,৪০০ কিমি
For example see template:Infobox Telescope.

Sometimes a property may have more than one value against in in Wikidata. You can use the |qual= parameter to specify which of the values you want to use.

Example for ব্যাস (P2386): Note: this example uses |qid=Q1513315 (testing for দক্ষিণ মেরু টেলিস্কোপ (Q1513315))

  • (Q613628): {{convert|input=P2386|qual=Q613628|ft|abbr=on}} → ১০.০ মি (৩২.৮ ফু)
  • (Q1395645): {{convert|input=P2386|qual=Q1395645|ft|abbr=on}} → ১ মি (৩.৩ ফু)

Parameter list

টেমপ্লেট:Convert/doc/parameter list

Deprecated options

টেমপ্লেট:Convert/doc/deprecations list

TemplateData

নতুন দৃশ্যমান সম্পাদনা দ্বারা ব্যবহৃত টেমপ্লেটের জন্য টেমপ্লেটডাটা নথি।

রূপান্তর শীর্ষ

Converts measurements to other units.

টেমপ্লেট প্যারামিটার[টেমপ্লেটের উপাত্ত সম্পাদনা করুন]

এই টেমপ্লেটটি প্যারামিটারের একই সরলরেখা বিন্যাসন পছন্দ করে।

প্যারামিটারবিবরণধরনঅবস্থা
Value1

The value to convert.

সংখ্যাপ্রয়োজনীয়
From unit2

The unit for the provided value.

উদাহরণ
km
স্ট্রিংপ্রয়োজনীয়
To units3

The units to convert into. Separate units by a space for multiple outputs. In an output unit, use + for a multiplication space.

উদাহরণ
mi nmi
স্ট্রিংপরামর্শকৃত
Precision or suffix4

Significant digits after decimal dot or, if negative, exponent of ten.

সংখ্যাঐচ্ছিক
Link unitslk

Indication of what units to apply wikilinks to. Use “on” for all, “in” for the input unit, “out” for the output units, or “off” for none of the units.

পূর্বনির্ধারিত
off
উদাহরণ
on
স্ট্রিংঐচ্ছিক
Abbreviationabbr

Display for the units: “on” to display all units using their unit symbols, “off” to display all units in full words, “in” to display the unit symbol for the input unit, “out” to display the unit symbols for the output units, “unit” to display unit symbols for both input and output units when using scientific notation, “values” for no units at all (neither unit symbols nor full words of units).

পূর্বনির্ধারিত
out
উদাহরণ
on, unit, in, out, off
স্ট্রিংপরামর্শকৃত
Spellingsp

Spelling of units. Use “us” to display unit names using U.S. spelling.

উদাহরণ
us
স্ট্রিংঐচ্ছিক
Adjectiveadj

Whether to use adjectival form. Use “on” for singular unit name appended by a hyphen, “mid” to put conversion at end, or “off” (default) for no adjectival form.

পূর্বনির্ধারিত
off
উদাহরণ
on
ভারসাম্যহীন উইকিলেখাঐচ্ছিক
Conversiondisp

Display conversion result: “or”: after ‘or’, “x”: with custom prefix and suffix, “b”: in parentheses, “table”/“tablecen”, “output only”: alone, “output number only”: alone and without unit, “unit”: not at all but input unit; if the value is a number it is used as precision.

উদাহরণ
b
স্ট্রিংঅবচিত
Orderingorder

“flip” returns converted value first, input value second.

উদাহরণ
flip
স্ট্রিংঐচ্ছিক
Significant figuressigfig

Indicates the number of significant figures to be used in rounding.

সংখ্যাঐচ্ছিক
Rounding outputround

The type of rounding. “5” rounds the output number to nearest multiple of 5, “25” to nearest multiple of 25, “each” rounds each number in a range.

সংখ্যাঐচ্ছিক
Thousands separatorcomma

Sets or suppresses the use of thousands separators in the numbers. “off”: no separator; “gaps”: use space instead of comma as thousands separator; “5”: only add thousands separator when the integral part of the number uses 5 positions or more (10,000 or more; if using comma as thousands separator, 1234 would produce '1234', 12345 would produce '12,345').

পূর্বনির্ধারিত
on
উদাহরণ
off
স্ট্রিংঐচ্ছিক
Sort keysortable

“on” generates a hidden sort key

উদাহরণ
on
স্ট্রিংঐচ্ছিক
Spell numbers?spell

If used, spells input or input and output numbers in words, optionally capitalizing the first

উদাহরণ
'in', 'In', 'on', or 'On'
স্ট্রিংঐচ্ছিক
Singular?sing

If 'yes', uses singular form of units (deprecated)

উদাহরণ
yes
স্ট্রিংঅবচিত
Fraction?frac

fraction as rounding unit

সংখ্যাঐচ্ছিক
Currency symbol$

sets currency symbol in both units

উদাহরণ
$=€ will show " €10 per mile (€6.2/km)"
স্ট্রিংঐচ্ছিক
WD propertyinput

Reads the property value of the item (article), then converts it

উদাহরণ
{{convert|input=P2046}} (P2046=area)
স্ট্রিংঐচ্ছিক

আরও দেখুন

টেমপ্লেট:Convert navs