Skip to content

Latest commit

 

History

History
214 lines (177 loc) · 8.64 KB

units.md

File metadata and controls

214 lines (177 loc) · 8.64 KB

Supported units

This file is generated by UnitsDocumentationTests. Unit names ignore case. Every row lists all the names a unit answers to.

Angle

Base unit: degree. Class: AngleConverter.

Unit Equals (in the base unit) Names
degree 1 degree, deg, °, degrees
rad 57.29577951 rad, radian, radians
grad 0.9 grad, gradian, gon, gradians
turn 360 turn, revolution, rev, turns
arcmin 0.01666666667 arcmin, arcminute, arcminutes
arcsec 0.0002777777778 arcsec, arcsecond, arcseconds

Area

Base unit: m². Class: AreaConverter.

Unit Equals (in the base unit) Names
m² 1 m², m2, square metre, square meter, square metres, square meters, sq m, centiare
km² 1000000 km², km2, square kilometre, square kilometer, sq km, kilometre
cm² 0.0001 cm², cm2, square centimetre, square centimeter, sq cm, centimetre
mm² 1E-06 mm², mm2, square millimetre, square millimeter, sq mm, millimetre
a 100 a, are
ha 10000 ha, hectare, hectares
ac 4046.856422 ac, acre, acres
in² 0.00064516 in², in2, sq in, square inch, square inches
ft² 0.09290304 ft², ft2, square foot, square feet, sq ft
yd² 0.83612736 yd², yd2, sq yd, square yard, square yards
mi² 2589988.11 mi², mi2, sq mi, square mile, square miles

DigitalStorage

Base unit: B. Class: DigitalStorageConverter.

Unit Equals (in the base unit) Names
B 1 B, byte, bytes
bit 0.125 bit, bits
kbit 125 kbit, kilobit, kilobits
Mbit 125000 Mbit, megabit, megabits
Gbit 125000000 Gbit, gigabit, gigabits
kB 1000 kB, KB, kilobyte, kilobytes
MB 1000000 MB, megabyte, megabytes
GB 1000000000 GB, gigabyte, gigabytes
TB 1E+12 TB, terabyte, terabytes
PB 1E+15 PB, petabyte, petabytes
KiB 1024 KiB, kibibyte, kibibytes
MiB 1048576 MiB, mebibyte, mebibytes
GiB 1073741824 GiB, gibibyte, gibibytes
TiB 1.099511628E+12 TiB, tebibyte, tebibytes
PiB 1.125899907E+15 PiB, pebibyte, pebibytes

Distance

Base unit: m. Class: DistanceConverter.

Unit Equals (in the base unit) Names
m 1 m, metre, meter, metres, meters
km 1000 km, kilometre, kilometer, kilometres, kilometers
cm 0.01 cm, centimetre, centimeter, centimetres, centimeters
mm 0.001 mm, millimetre, millimeter, millimetres, millimeters
µm 1E-06 µm, μm, um, micrometre, micrometer, micron
nm 1E-09 nm, nanometre, nanometer
in 0.0254 in, inch, inches
ft 0.3048 ft, foot, feet
yd 0.9144 yd, yard, yards
mile 1609.344 mile, miles, mi
nmi 1852 nmi, nautical mile, nautical miles
au 1.495978707E+11 au, astronomical unit
ly 9.460730473E+15 ly, light year, light-year, lightyear

Energy

Base unit: J. Class: EnergyConverter.

Unit Equals (in the base unit) Names
J 1 J, joule, joules
kJ 1000 kJ, kilojoule, kilojoules
MJ 1000000 MJ, megajoule, megajoules
cal 4.184 cal, calorie, calories
kcal 4184 kcal, kilocalorie, kilocalories
Wh 3600 Wh, watt hour, watt-hour
kWh 3600000 kWh, kilowatt hour, kilowatt-hour
BTU 1055.055853 BTU, british thermal unit
eV 1.602176634E-19 eV, electronvolt
ft-lbf 1.355817948 ft-lbf, ft lbf, foot-pound, foot pound force

Mass

Base unit: kg. Class: MassConverter.

Unit Equals (in the base unit) Names
kg 1 kg, kilogram, kilograms
gram 0.001 gram, g, grams
mg 1E-06 mg, milligram, milligrams
µg 1E-09 µg, μg, ug, microgram, micrograms
t 1000 t, tonne, tonnes, metric ton
quintal 100 quintal
ct 0.0002 ct, carat
gr 6.479891E-05 gr, grain
lb 0.45359237 lb, lbs, pound, pounds
oz 0.02834952313 oz, ounce, ounces
st 6.35029318 st, stone
short ton 907.18474 short ton, net ton, us ton
long ton 1016.046909 long ton, weight ton, gross ton, imperial ton

Power

Base unit: W. Class: PowerConverter.

Unit Equals (in the base unit) Names
W 1 W, watt, watts
milliwatt 0.001 milliwatt, milliwatts
kW 1000 kW, kilowatt, kilowatts
MW 1000000 MW, megawatt, megawatts
GW 1000000000 GW, gigawatt, gigawatts
hp 745.6998716 hp, horsepower, mechanical horsepower
PS 735.49875 PS, metric horsepower
BTU/h 0.2930710702 BTU/h, btu/hr, btu per hour

Pressure

Base unit: Pa. Class: PressureConverter.

Unit Equals (in the base unit) Names
Pa 1 Pa, pascal, pascals
hPa 100 hPa, hectopascal
kPa 1000 kPa, kilopascal
MPa 1000000 MPa, megapascal
bar 100000 bar
mbar 100 mbar, millibar
atm 101325 atm, standard atmosphere
psi 6894.757293 psi, pound per square inch
torr 133.3223684 torr
mmHg 133.3223874 mmHg, millimetre of mercury, millimeter of mercury
inHg 3386.389 inHg, inch of mercury

Speed

Base unit: m/s. Class: SpeedConverter.

Unit Equals (in the base unit) Names
m/s 1 m/s, mps, metre per second, meter per second, metres per second, meters per second
km/h 0.2777777778 km/h, kph, kmh, kmph, kilometre per hour, kilometer per hour, kilometres per hour, kilometers per hour
mph 0.44704 mph, mi/h, mile per hour, miles per hour
kn 0.5144444444 kn, kt, knot, knots
ft/s 0.3048 ft/s, fps, foot per second, feet per second

Temperature

Temperature scales are converted with formulas rather than a single factor.

Scale Names
celsius celsius, Celsius, °C, °c, C, c
fahrenheit fahrenheit, Fahrenheit, °F, °f, F, f
Kelvin Kelvin, kelvin, °K, °k, K, k

Time

Base unit: s. Class: TimeConverter.

Unit Equals (in the base unit) Names
s 1 s, sec, second, seconds, secs
ds 0.1 ds, decisecond, deci-second
cs 0.01 cs, centisecond, centi-second
ms 0.001 ms, millisecond, milli-second, milliseconds
us 1E-06 us, µs, μs, microsecond, micro-second, microseconds
ns 1E-09 ns, nanosecond, nano-second, nanoseconds
min 60 min, minute, minutes, mins
h 3600 h, hr, hrs, hour, hours
d 86400 d, day, days
wk 604800 wk, week, weeks
y 31536000 y, year, years
leap year 31622400 leap year, leap-year

Volume

Base unit: l. Class: VolumeConverter.

Unit Equals (in the base unit) Names
l 1 l, L, lt, ltr, liter, litre, liters, litres, dm³, dm3, cubic decimetre, cubic decimeter
ml 0.001 ml, millilitre, milliliter, millilitres, milliliters
cl 0.01 cl, centilitre, centiliter
dl 0.1 dl, decilitre, deciliter
m³ 1000 m³, m3, cubic metre, cubic meter
cm³ 0.001 cm³, cm3, cubic centimetre, cubic centimeter, cc
mm³ 1E-06 mm³, mm3, cubic millimetre, cubic millimeter
ft³ 28.31684659 ft³, ft3, cubic foot, cubic feet, cu ft
in³ 0.016387064 in³, in3, cu in, cubic inch, cubic inches
imperial pint 0.56826125 imperial pint, imperial pt, imperial p
imperial quart 1.1365225 imperial quart, imperial qt
imperial gallon 4.54609 imperial gallon, imperial gal
imperial fluid ounce 0.0284130625 imperial fluid ounce, imperial fl oz
US teaspoon 0.004928921594 US teaspoon, US tsp
US tablespoon 0.01478676478 US tablespoon, US tbsp
US fluid ounce 0.02957352956 US fluid ounce, US fl oz
US cup 0.2365882365 US cup
US pint 0.473176473 US pint, US pt, US p
US quart 0.946352946 US quart, US qt
US gallon 3.785411784 US gallon, US gal