The info_unit_conversions()
function
Get a table of info on all the available keywords for unit conversions.
Units that are compatible with unit_conversion() |
Use pairs of keyword values from a common group.
|
Unit |
Keyword |
acceleration |
g-force |
acceleration.g-force |
meter per square second |
acceleration.meter-per-square-second |
angle |
arc second |
angle.arc-second |
arc minute |
angle.arc-minute |
degree |
angle.degree |
radian |
angle.radian |
milliradian |
angle.milliradian |
gradian |
angle.gradian |
area |
square meter |
area.square-meter |
square kilometer |
area.square-kilometer |
square inch |
area.square-inch |
square foot |
area.square-foot |
square yard |
area.square-yard |
square mile |
area.square-mile |
hectare |
area.hectare |
acre |
area.acre |
consumption |
liter per 100 kilometer |
consumption.liter-per-100-kilometer |
liter per kilometer |
consumption.liter-per-kilometer |
mile per gallon |
consumption.mile-per-gallon |
mile per gallon (Imperial) |
consumption.mile-per-gallon-imperial |
digital |
bit |
digital.bit |
byte |
digital.byte |
kilobit |
digital.kilobit |
kilobyte |
digital.kilobyte |
megabit |
digital.megabit |
megabyte |
digital.megabyte |
gigabit |
digital.gigabit |
gigabyte |
digital.gigabyte |
terabit |
digital.terabit |
terabyte |
digital.terabyte |
petabit |
digital.petabit |
petabyte |
digital.petabyte |
duration |
nanosecond |
duration.nanosecond |
microsecond |
duration.microsecond |
millisecond |
duration.millisecond |
second |
duration.second |
minute |
duration.minute |
hour |
duration.hour |
day |
duration.day |
week |
duration.week |
month |
duration.month |
year |
duration.year |
decade |
duration.decade |
century |
duration.century |
energy |
joule |
energy.joule |
kilojoule |
energy.kilojoule |
watt hour |
energy.watt-hour |
kilowatt hour |
energy.kilowatt-hour |
electronvolt |
energy.electronvolt |
calorie |
energy.calorie |
food calorie |
energy.foodcalorie |
foot-pound |
energy.foot-pound |
British thermal unit |
energy.british-thermal-unit |
US therm |
energy.therm-us |
force |
newton |
force.newton |
pound-force |
force.pound-force |
length |
nanometer |
length.nanometer |
micrometer |
length.micrometer |
millimeter |
length.millimeter |
centimeter |
length.centimeter |
meter |
length.meter |
kilometer |
length.kilometer |
inch |
length.inch |
foot |
length.foot |
yard |
length.yard |
mile |
length.mile |
nautical mile |
length.nautical-mile |
mass |
microgram |
mass.microgram |
milligram |
mass.milligram |
gram |
mass.gram |
kilogram |
mass.kilogram |
ounce |
mass.ounce |
pound |
mass.pound |
metric ton |
mass.metric-ton |
ton |
mass.ton |
imperial ton |
mass.imperial-ton |
stone |
mass.stone |
pressure |
atmosphere |
pressure.atmosphere |
bar |
pressure.bar |
pascal |
pressure.pascal |
torr |
pressure.torr |
pound-force per square inch |
pressure.pound-force-per-square-inch |
speed |
meter per second |
speed.meter-per-second |
kilometer per hour |
speed.kilometer-per-hour |
foot per second |
speed.foot-per-second |
mile per hour |
speed.mile-per-hour |
knot |
speed.knot |
temperature |
degree Celsius |
temperature.celsius |
degree Fahrenheit |
temperature.fahrenheit |
kelvin |
temperature.kelvin |
rankine |
temperature.rankine |
torque |
newton meter |
torque.newton-meter |
pound-force foot |
torque.pound-force-foot |
volume |
milliliter |
volume.milliliter |
liter |
volume.liter |
cubic meter |
volume.cubic-meter |
cubic inch |
volume.cubic-inch |
cubic foot |
volume.cubic-foot |
fluid ounce |
volume.fluid-ounce |
cup |
volume.cup |
pint |
volume.pint |
quart |
volume.quart |
gallon |
volume.gallon |
teaspoon |
volume.teaspoon |
tablespoon |
volume.tablespoon |
fluid ounce (Imperial) |
volume.fluid-ounce-imperial |
cup (Imperial) |
volume.cup-imperial |
pint (Imperial) |
volume.pint-imperial |
quart (Imperial) |
volume.quart-imperial |
gallon (Imperial) |
volume.gallon-imperial |
teaspoon (Imperial) |
volume.teaspoon-imperial |
tablespoon (Imperial) |
volume.tablespoon-imperial |