Помоћ:Претварање јединица

Template {{convert}} is used to convert a value from one unit of measurement to another. This page documents some features of units, and lists units that are commonly used in conversions.

If no output unit is specified, the default output for the input unit will be used. Using defaults provides greater uniformity across articles.

Some options provide text that the template may mistakenly use for the output unit, if none is specified. That can be avoided by providing an empty output unit, as shown in the following examples.

The second of the above examples produces an error because "-long" is interpreted as the name of the output unit. The third example avoids that by specifying an empty output unit which means "use the default".

The following also works, although it sets the output precision to 0.

  • {{convert|4|ft|0|adj=mid|-long}} → 4 ft-long (1 m)

The last example works because "|0" sets the output precision to zero, and convert does not look for an output unit once the precision has been specified because a precision is always given after the output unit, if any.

The standard SI prefixes can applied to the following units.

СИ префикси
10n Префикс Симбол Кратка скала Дуга скала Децимални еквивалент
1030 квета Q нонилион квинтилион 1 000 000 000 000 000 000 000 000 000 000
1027 рона R октилион квадрилијарда (хиљаду квадрилиона) 1 000 000 000 000 000 000 000 000 000
1024 јота Y септилион квадрилион 1 000 000 000 000 000 000 000 000
1021 зета Z секстилион трилијарда (хиљаду трилиона) 1 000 000 000 000 000 000 000
1018 екса E квинтилион трилион 1 000 000 000 000 000 000
1015 пета P квадрилион билијарда (хиљаду билиона) 1 000 000 000 000 000
1012 тера T трилион билион 1 000 000 000 000
109 гига G билион милијарда (хиљаду милиона) 1 000 000 000
106 мега M милион 1 000 000
103 кило k хиљада 1 000
102 хекто h сто 100
101 дека da десет 10
100 нема нема један 1
10−1 деци d десети део 0,1
10−2 центи c стоти део 0,01
10−3 мили m хиљадити део 0,001
10−6 микро µ милионити део 0,000 001
10−9 нано n билионити део милијардити део 0,000 000 001
10−12 пико p трилионити део билионити део 0,000 000 000 001
10−15 фемто f квадрилионити део билијардити део 0,000 000 000 000 001
10−18 ато a квинтилионити део трилионити део 0,000 000 000 000 000 001
10−21 зепто z секстилионити трилијардити део 0,000 000 000 000 000 000 001
10−24 јокто y септилионити квадрилионити део 0,000 000 000 000 000 000 000 001
10−27 ронто r октилионити квадрилијардити део 0,000 000 000 000 000 000 000 000 001
10−30 квекто q нонилионити квинтилионити део 0,000 000 000 000 000 000 000 000 000 001
Unit type Unit code Unit name
Area a are
m2 square metre
Charge coulomb coulomb
Energy J joule
Force N newton
Length m metre
Magnetic field strength T tesla
Mass g gram
Power W watt
Pressure Pa pascal
Radioactivity Bq becquerel
Ci curie
Time s second
Volume L litre
l litre
m3 cubic metre

Some SI prefixes are demonstrated in the following. As a convenience, "micro" can be entered as "u" instead of "µ".

  • {{convert|1.23|Gm|angstrom}} → 123 Gm (1,23×1021 Å)
  • {{convert|1.23|Mm|angstrom}} → 123 Mm (1,23×1018 Å)
  • {{convert|1.23|Ts|hour}} → 123 Ts (3,4×1010 h)
  • {{convert|1.23|nJ|Wh}} → 123 nJ (3,4×10−11 Wh)
  • {{convert|1.23|µm|in}} → 123 µm (0,0048 in)
  • {{convert|1.23|um|in}} → 123 µm (0,0048 in)
  • {{convert|1.23|um|uin|abbr=on}} → 123 µm (4.800 μin)
  • {{convert|18|mm|in}} → 18 mm (0,71 in)
  • {{convert|18|km|mi}} → 18 km (11 mi)

The above demonstrates that "uin" is the unit code for microinch.

An input unit can be converted to any number of output units—the outputs are specified as a "combination" by separating unit codes with a space (" ") or a plus ("+"). Using a space as a separator does not work if any of the unit codes contains a space.

For example, each of the following converts 1.2 km2 to acres, square yards, and hectares.

  • {{convert|1.2|km2|acre sqyd ha}} → 12 km2 (3.000 acres; 14.000.000 sq yd; 1.200 ha)
  • {{convert|1.2|km2|acre+sqyd+ha}} → 12 km2 (3.000 acres; 14.000.000 sq yd; 1.200 ha)

In the following, because "board feet" contains a space, using a space to make a combination fails.

The following converts a pressure to four output units. The precision is 1 (1 decimal place), and units are abbreviated and linked.

  • {{convert|895|hPa|psi inHg atm mbar|1|abbr=on|lk=on}} → 895 hPa (13,0 psi; 26,4 inHg; 0,9 atm; 895,0 mbar)

Some "standard" combinations have been defined—see the full list of units.

Engineering notation

[уреди | уреди извор]

Most units can be combined with a scale factor, for example, e6km represents a million kilometres. The following prefixes may be used; per WP:NUMERAL, values follow the short scale. If lk is on, the numbers are linked as shown below.

Engineering notation can only be applied to simple units—temperatures, combinations, and some other special units will not work.

Some examples using engineering notation follow.

  • {{convert|123.4|e3m2}} → 1.234×10^3 m2 (13,28×10^6 sq ft)
  • {{convert|123.4|e3m2|e6sqft|abbr=off}} → 1.234 thousand square metres (13,28 million square feet)
  • {{convert|1.23|e6L}} → 123×10^6 L (32.000.000 US gal)
  • {{convert|1.23|e6L|e3usgal|abbr=off|lk=on|sp=us}} → 123 million liters (32.000 thousand U.S. gallons)
  • {{convert|1.23|e9impgal}} → 123×10^9 imp gal (560 Gl)
  • {{convert|1.23|e9impgal|e3usgal|abbr=off|lk=on}} → 123 billion imperial gallons (148.000.000 thousand US gallons)
  • {{convert|1.23|e12cuft}} → 123×10^12 cu ft (3,5×10^12 m3)

Area

Examples:

  • {{convert|1.5|sqmi|km2}} → 15 sq mi (39 km2)
  • {{convert|1.5|sqmi|km2|abbr=off}} → 15 square miles (39 square kilometres)
  • {{convert|1.5|sqmi|km2|abbr=on}} → 15 sq mi (39 km2)
Unit code Unit symbol Unit name US name, if different
acre acre acre
ha ha hectare
m2 m2 square metre square meter
cm2 cm2 square centimetre square centimeter
km2 km2 square kilometre square kilometer
sqin sq in square inch
sqft sq ft square foot
sqyd sq yd square yard
sqmi sq mi square mile
cda cda cuerda

Fuel efficiency

Examples:

  • {{convert|12|mpgus|km/L}} → 12 mpg‑US (5,1 km/L)
  • {{convert|12|mpgus|km/L|abbr=off}} → 12 miles per US gallon (5,1 kilometres per litre)
  • {{convert|12|mpgus|km/L|abbr=off|sp=us}} → 12 miles per U.S. gallon (5,1 kilometers per liter)
  • {{convert|12|mpgus|km/L|abbr=on}} → 12 mpg‑US (5,1 km/L)
Unit code Unit symbol Unit name US name, if different
km/L km/L kilometre per litre kilometer per liter
mpgimp mpg‑imp mile per imperial gallon
mpgus mpg‑US mile per US gallon mile per U.S. gallon
L/km L/km litre per kilometre liter per kilometer
L/100 km L/100 km litre per 100 kilometres liter per 100 kilometers

Length

Examples:

  • {{convert|123|cm|in}} → 123 cm (48 in)
  • {{convert|123|cm|in|abbr=off|sp=us}} → 123 centimeters (48 inches)
  • {{convert|123|cm|in|abbr=on}} → 123 cm (48 in)
Unit code Unit symbol Unit name US name, if different
uin μin microinch
in in inch
ft ft foot
yd yd yard
mi mi mile
nmi nmi nautical mile
m m metre meter
cm cm centimetre centimeter
mm mm millimetre millimeter
km km kilometre kilometer
angstrom Å ångström

Mass

Examples:

  • {{convert|72.3|kg|lb}} → 723 kg (1.594 lb)
  • {{convert|72.3|kg|lb|abbr=off}} → 723 kilograms (1.594 pounds)
  • {{convert|72.3|kg|lb|abbr=on}} → 723 kg (1.594 lb)
Unit code Unit symbol Unit name US name, if different
g g gram
kg kg kilogram
oz oz ounce
lb lb pound
st st stone
LT long ton long ton
MT t metric ton
ST short ton short ton

Pressure

Examples:

  • {{convert|28|psi|Pa}} → 28 psi (190.000 Pa)
  • {{convert|28|psi|Pa|abbr=off}} → 28 pounds per square inch (190.000 pascals)
  • {{convert|28|psi|Pa|abbr=on}} → 28 psi (190.000 Pa)
Unit code Unit symbol Unit name US name, if different
atm atm standard atmosphere
mbar mbar millibar
psi psi pound per square inch
Pa Pa pascal

Speed

Examples:

  • {{convert|60|mph|km/h}} → 60 mph (97 km/h)
  • {{convert|60|mph|km/h|abbr=off}} → 60 miles per hour (97 kilometres per hour)
  • {{convert|60|mph|km/h|abbr=on}} → 60 mph (97 km/h)
Unit code Unit symbol Unit name US name, if different
km/h km/h kilometre per hour kilometer per hour
km/s km/s kilometre per second kilometer per second
kn kn knot
mph mph mile per hour

Temperature

Examples:

  • {{convert|100|C|F}} → 100 °C (212 °F)
  • {{convert|100|C|F|abbr=off}} → 100 degrees Celsius (212 degrees Fahrenheit)
  • {{convert|100|C-change|F-change}} → 100 °C (180 °F)
  • {{convert|100|C-change|F-change|abbr=out}} → 100 degrees Celsius change (180 °F)
Unit code Unit symbol Unit name US name, if different
C °C degree Celsius
F °F degree Fahrenheit
K K kelvin
C-change °C degree Celsius change
F-change °F degree Fahrenheit change
K-change K kelvin change

Torque

Examples:

  • {{convert|12.5|Nm|lb.in}} → 125 N⋅m (1.110 lb⋅in)
  • {{convert|12.5|Nm|lb.in|abbr=off}} → 125 newton metres (1.110 pound force-inchs)
  • {{convert|12.5|Nm|lb.in|abbr=on|lk=on}} → 125 N⋅m (1.110 lb⋅in)
Unit code Unit symbol Unit name US name, if different
lb.in lb⋅in pound force-inch
lb.ft lb⋅ft pound force-foot
Nm N⋅m newton metre newton meter

Volume

Examples:

  • {{convert|125|cuin|l}} → 125 cu in (2,05 l)
  • {{convert|125|cuin|l|abbr=off}} → 125 cubic inches (2,05 litres)
  • {{convert|125|cuin|l|abbr=on}} → 125 cu in (2,05 l)
Unit code Unit symbol Unit name US name, if different
cuin cu in cubic inch
cuft cu ft cubic foot
cuyd cu yd cubic yard
cumi cu mi cubic mile
impgal imp gal imperial gallon
impoz imp fl oz imperial fluid ounce
usgal US gal US gallon U.S. gallon
usoz US fl oz US fluid ounce U.S. fluid ounce
L L litre liter
l l litre liter
m3 m3 cubic metre cubic meter
cc cc cubic centimetre cubic centimeter
mm3 mm3 cubic millimetre cubic millimeter


Hands (unit of length)

[уреди | уреди извор]

A hand is a unit of length used to measure the height of horses. One hand is four inches, and a value of 12.3 hands represents 12 hands + 3 inches (51 inches).

  • By default, the unit is shown as a linked name (hands).
  • The hands unit can be abbreviated to "h" or to "hh"; by default, abbreviations are not linked.
    {{convert|27|in|hand}} → 27 in (6,3 h)
    {{convert|27|in|hand|lk=off}} → 27 in (6,3 h)
    {{convert|27|in|hand|abbr=h}} → 27 in (6,3 h)
    {{convert|27|in|hand|abbr=hh}} → 27 in (6,3 hh)
    {{convert|27|in|hand|abbr=hh|lk=out}} → 27 in (6,3 hh)
  • The hands value has at most one digit after the decimal mark, and has an optional fraction.
  • A precision of 2 assumes |frac=2 (round to nearest 12 inch).
  • A precision of 3 or more assumes |frac=4 (round to nearest 14 inch).
  • If ever needed, |frac=8 can be used to round to the nearest 18 inch.
    {{convert|27.63|in|hand}} → 2.763 in (690,3 h)
    {{convert|27.63|in|hand|0}} → 2.763 in (691 h)
    {{convert|27.63|in|hand|1}} → 2.763 in (690,3 h)
    {{convert|27.63|in|hand|2}} → 2.763 in (690,3 h)
    {{convert|27.63|in|hand|3}} → 2.763 in (690,3 h)
    {{convert|27.63|in|hand|frac=8}} → 2.763 in (690,3 h)
    {{convert|28.5|in|hand|2}} → 285 in (71,1 h)
    {{convert|28.5|in|hand|3}} → 285 in (71,1 h)

Output in hands and inches

[уреди | уреди извор]
  • When using "hand in" to convert to hands and inches, the rounded hands and inches values are equivalent, and use the same fraction, if any.
  • Special rounding of the inches value only occurs when "hand in" is the output. For example, if the output is "in hand", the inches value is rounded independently from the hands value.
    {{convert|156|cm|hand in}} → 156 cm (15,1 h; 61 in)
    {{convert|156|cm|hand in|2}} → 156 cm (15,1 12 h; 61 12 in)
    {{convert|156|cm|in hand}} → 156 cm (61 in; 15,1 h)
    {{convert|156|cm|in hand|2}} → 156 cm (61,42 in; 15,1 12 h)
    {{convert|156|cm|hand in|abbr=out}} → 156 centimetres (15,1 h; 61 in)
    {{convert|156|cm|hand in|abbr=h}} → 156 cm (15,1 h; 61 in)
    {{convert|156|cm|hand in|abbr=hh}} → 156 cm (15,1 hh; 61 in)
  • A range of values can be indicated with "-" (hyphen) or "to". When a dash is displayed by convert, it is always an en dash.
  • Alternatively, "and" and "or" can be used.
    {{convert|137|-|156|cm|hand in}} → 137—156 cm (13,2—15,1 h; 54—61 in)
    {{convert|137|-|156|cm|hand in|2}} → 137—156 cm (13,2—15,1 12 h; 54—61 12 in)
    {{convert|137|-|156|cm|hand in|abbr=in}} → 137—156 cm (13,2—15,1 hands; 54—61 inches)
    {{convert|137|-|156|cm|hand in|abbr=h}} → 137—156 cm (13,2—15,1 h; 54—61 in)
    {{convert|137|-|156|cm|hand in|abbr=on}} → 137—156 cm (13,2—15,1 h; 54—61 in)
    {{convert|137|and|156|cm|hand in|abbr=on}} → 137 and 156 cm (13,2 and 15,1 h; 54 and 61 in)
    {{convert|137|or|156|cm|hand in|abbr=on}} → 137 or 156 cm (13,2 or 15,1 h; 54 or 61 in)
  • The following examples illustrate various combinations of options.
    {{convert|57|in|hand}} → 57 in (14,1 h)
    {{convert|2|m|hand}} → 2 m (19,3 h)
    {{convert|137|cm|hand|2}} → 137 cm (13,2 h)
    {{convert|137|cm|hand|2|sp=us}} → 137 cm (13,2 h)
    {{convert|14.1|hand|in}} → 141 h (564 in)
    {{convert|14.1|hand|cm}} → 141 h (1.433 cm)
    {{convert|14.1|hand|in cm}} → 141 h (564 in; 1.433 cm)
    {{convert|14.1|hand|cm in}} → 141 h (1.433 cm; 564 in)
    {{convert|14.1|-|14.3|hand|cm}} → 141—143 h (1.433—1.453 cm)
    {{convert|14.1|-|14.3|hand|in cm}} → 141—143 h (564—572 in; 1.433—1.453 cm)
    {{convert|50|-|57|in|hand}} → 50—57 in (12,2—14,1 h)
    {{convert|2|-|3|m|hand}} → 2—3 m (19,3—29,2 h)
    {{convert|57|or|59|in|hand|abbr=on}} → 57 or 59 in (14,1 or 14,3 h)
    {{convert|137|-|139|cm|hand|lk=on}} → 137—139 cm (13,2—13,3 h)
    {{convert|137|and|162|cm|hand|0|abbr=in|lk=in}} → 137 and 162 cm (13 and 16 hands)
    {{convert|137|and|162|cm|hand in}} → 137 and 162 cm (13,2 and 16,0 h; 54 and 64 in)
    {{convert|9.2|hand}} → 92 h (368 in; 935 cm)
    {{convert|9.2|hand|lk=off}} → 92 h (368 in; 935 cm)
    {{convert|9.2|hand|abbr=h}} → 92 h (368 in; 935 cm)
    {{convert|9.2|hand|abbr=h|lk=in}} → 92 h (368 in; 935 cm)
    {{convert|9.2|hand|abbr=hh|lk=in}} → 92 hh (368 in; 935 cm)
    {{convert|9.2+1/2|hand}}92 12 h (368,5 in; 936 cm)
    {{convert|9.2+3/4|hand}}92 34 h (368,75 in; 937 cm)
    {{convert|9.2+3/4|hand|abbr=h}}92 34 h (368,75 in; 937 cm)
    {{convert|9.2+3/4|hand|cm in}}92 34 h (937 cm; 368,75 in)
    {{convert|9.2+3/4|hand|cm in|abbr=out}}92 34 hands (937 cm; 368,75 in)
    {{convert|9.2+3/4|hand|cm in|abbr=on}}92 34 h (937 cm; 368,75 in)
    {{convert|9.2+3/4|hand|in}}92 34 h (368,75 in)
    {{convert|9.2+3/4|hand|in|abbr=out}}92 34 hands (368,75 in)
    {{convert|9.2+3/4|hand|in|abbr=on}}92 34 h (368,75 in)
    {{convert|15.1|-|16.3|hand}} → 151—163 h (604—652 in; 1.534—1.656 cm)
    {{convert|14.2|to|16.1|hand}} → 142 to 161 h (568 to 644 in; 1.443 to 1.636 cm)