A handy list of units

This list was part of a standard OpenBSD installation on my laptop but somehow such things aren't part of my Debian Linux installation, being filled instead with lots of mostly useless junk. That's one reason why I prefer traditional BSDs like OpenBSD and FreeBSD to Linux.

This came out of units.lib which I'd stumbled across before, but there's also a program called units (which uses units.lib), in this case written by an Adrian Mariano which is a clone of a traditional UNIX command. Nowadays we're more concerned with fonts and themes and other trivial fluff. This is from OpenBSD who got it from NetBSD, which is sometimes the way useful stuff happens.

This is just a list for use with the calculator of your choice and inferior operating systems. It's entirely likely this was never meant to be read by humans. Some is a little hard to take seriously. I had in mind to make a Javascript units conversion calculator but there are too many units for drop-down lists, at least for now (and 700 lines of C code). Use your browser's seach (usually Ctrl-F) and if you don't find what you're looking for, try Wikipedia.

It's interesting to look at the way the units program works. Many units convert to other units, but in the end you find what you're looking for. A sample from the units program:

You have: fortnight
You want: sec
	* 1209600
	/ 8.2671958e-07
	
You have: firkin
You want: drop
	* 681374.12
	/ 1.4676225e-06
        
You have: ton
You want: gram
	* 907184.74
	/ 1.1023113e-06        
There aren't direct conversions built in, it works down the list toward what you want. I've taken the liberty of changing | to / where it looks appropriate.

Sections:
Apothecary   Avoirdupois   British   Computer   Constants   Currency   Dimensionless   Electrical   Energy   Length   Light   Mass   Prefixes   Russian   Time   US Dry   US Liquid   Everything Else  

Prefixes:
atto-1e-18
centi-1e-2
deca-deka
demi-.5
exa-1e18
femto-1e-15
giga-1e9
hecto-1e2
kilo-1e3
mega-1e6
micro-1e-6
milli-1e-3
myria-1e4
nano-1e-9
peta-1e15
pico-1e-12
semi-.5
tera-1e12
yocto-1e-24
yotta-1e24
zepto-zopto
zetta-1e21
zopto-1e-21

Constants:
alpha0.5 mu-c-e2/planck
AU1.49597870e+11 m fuzz
auAU
bigG6.67390e-11 m3/kg/s2
c2.99792458e+8 m/sec
e1.60217733e-19 coul fuzz
electronmass9.1093897e-31 kg
energyc2 (to be multiplied by mass)
epsilon1.0 /mu/c2
forceg (to be multiplied by mass)
fuzz1 [or an approximation]
g9.80665 m/sec2
hbar0.5 planck/pi
hgmercury
mercury1.3332239e+5 kg/m2-sec2
mmHg0.001 m hg
mole6.0221367e+23 fuzz
mu4.e-7 pi-N/A2
neutronmass1.6749286e-27 kg
pi3.14159265358979323846
planck6.6260755e-34 joule-sec
protonmass1.6726231e-27 kg

Dimensionless:
arcdeg1 degree
arcmin1/60 arcdeg
arcsec1/60 arcmin
ccs1/36 erlang
circle2 pi-radian
degree1/180 pi-radian
grade0.9 degree
radian0.5 / pi
revolutionturn
revturn
sphere4 pi-steradian
srsteradian
steradianradian2 [^2?]
turn2 pi-radian

Time:
daday
day24 hr
hour60 min
hrhour
minminute
minute60 sec
month1/12 year
msmillisec
secondsec
ssec
usmicrosec
week7 day
year3.15569259747e7 sec fuzz
yryear

Mass:
gmgram
grammillkg
metric tonkilokg
mgmilligram

Avoirdupois:
2240 lb
dram1/16 oz
drdram
grain1/7000 lb
grgrain
lb0.45359237 kg
lbflb g
long ton
ounce1/16 lb
poundlb
short ton2000 lb
tonshort ton

Apothecary:
apdram60 grain
apounce480 grain
appound5760 grain
scruple20 grain
troy poundappound

Length:
angstromdecinanometer
ao0.25 alpha/pi/rydbergconst
feetfoot
foot12 in
ftfoot
inch2.54 cm
ininch
meterm
micronmicrometer
mile5280 ft
mimile
rdrod
rod3.5 yd
yard3 ft
ydyard

British:
acre4840 yd2
brbushel4 brpeck
british1200/3937 m/ft
brfloz1/20 brpint
brgallon277.420 in3 fuzz
brpeck554.84 in3 fuzz
brpint1/2 brquart
brquart1/4 brgallon
cccm3
literkilocc
mlmilliliter
nmile1852 m

US Liquid:
fldr1/8 floz
floz1/16 pt
galgallon
gallon231 in3
imperial1.20095
pint1/2 qt
ptpint
qtquart
quart1/4 gal

US Dry:
dry268.8025 in3/gallon fuzz
peck8 dry-quart
pkpeck
bushel4 peck
bubushel
chaldron36 bushel

Russian:
arshin1/1500 verst (is not exactly defined)
berkovets10 pood
charka1/100 vedro
desyatina_farmery0.75 desyatina_state
desyatina_state109.3 are
dolya1/96 zolotnik
funt0.40951 kg
kosayasazhen1|430.2 verst
liniya1/10 in
lot1/32 funt
mezhevayaverst2 verst
pood40 funt
pyad7 in
ruell16.54 in
rumile7 verst
sazhen1/500 verst
shkalik1/200 vedro
shtoff1/10 vedro
sqarshin1/21600 desyatina_state
sqfoot1/117600 desyatina_state
sqverst104.2 desyatina_state
vedro12.3 liter
vershok1.75 in
verst1066.8 m
vinebottle1/16 vedro
vodkabottle1/20 vedro
zolotnik1/3 lot

Energy:
cal4.1868 joule
Jjoule
joulent-m
newtonkg-m/sec2
Nnewton
ntnewton

Electrical:
Aamp
ampampere
amperecoul/sec
Ccoul
coulombcoul
faradcoul/volt
Ffarad
henrysec2/farad
Hhenry
mho1/ohm
ohmvolt/amp
voltwatt/amp
wattjoule/sec
Wbweber
webervolt-sec
Wwatt

Light:
cdcandela
lumencd sr
luxcd sr/m2
Currency:
Circa 2002
AEDunitedarabdirham
argentinapeso$ XXX not stable
ARPargentinapeso
ATSaustriaschilling
australiadollar0.5645 $
austriaschilling1/13.7603 euro
bahraindinar2.6525 $
BEFbelgiumfranc
belgiumfranc1/40.3399 euro
bolivarvenezuelabolivar
brazilreal0.3981 $
britainpound1.4655 $
BRRbrazilreal
CADcanadadollar
canadadollar0.652 $
CHFswitzerlandfranc
chilepeso0.0015 $
chinarenminbi0.1208 $
chinayuanchinarenminbi
CLPchilepeso
CNYchinarenminbi
colombiapeso0.000430 $
COPcolombiapeso
CSKczechkoruna
czechkoruna0.0306 $
DEMgermanymark
denmarkkrone0.126 $
DKKdenmarkkrone
$US dollar
drachmagreecedrachma
ECSecuadorsucre
escudoportugalescudo
EUReuro
euro0.937 $
FIMfinlandmarkka
finlandmarkka1/5.94573 euro
francefranc1/6.55957 euro
francfrancefranc
FRFfrancefranc
GBPbritainpound
germanymark1/1.95583 euro
GRDgreecedrachma
greatbritainpoundbritainpound
greecedrachma1/340.750 euro
guildernetherlandsguilder
HKDhongkongdollar
hollandguildernetherlandsguilder
hongkongdollar0.13 $
HUFhungaryforint
hungaryforint0.00384 $
IDRindonesiarupiah
ILSisraelshekel
indiarupee0.0204 $
indonesiarupiah0.000113 $
INRindiarupee
irelandpunt1/0.787564 euro
israelshekel0.202 $
italylira1/1936.27 euro
ITLitalylira
japanyen0.0081 $
JODjordandinar
jordandinar1.41 $
JPYjapanyen
KRWsouthkoreawon
kuwaitdinar3.28 $
KWDkuwaitdinar
LBPlebanonpound
lebanonpound0.000661 $
liraitalylira
luxembourgfranc1/40.3399 euro
malaysiaringgit0.263 $
maltalira2.28 $
markgermanymark
markkafinlandmarkka
mexicopeso0.103 $
MTLmaltalira
MXPmexicopeso
MYRmalaysiaringgit
netherlandsguilder1/2.20371 euro
newzealanddollar0.477 $
NLGnetherlandsguilder
NOKnorwaykrone
norwaykrone0.126 $
NZDnewzealanddollar
pakistanrupee0.0167 $
PENperunewsol
perunewsol0.288 $
pesetaspainpeseta
pesomexicopeso
philippinespeso0.0200 $
PHPphilippinespeso
PKRpakistanrupee
PLZpolandzloty
polandzloty0.248 $
portugalescudo1/200.482 euro
poundsterlingbritainpound
randsouthafricarand
rupeeindiarupee
SARsaudiarabiariyal
saudiarabiariyal0.2666 $
SEKswedenkrona
SGDsingaporedollar
singaporedollar0.560 $
slovakkoruna0.0214 $
solperusol
southafricarand0.103 $
southkoreawon0.00082 $
spainpeseta1/166.386 euro
srilankarupee0.0104 $
sucreecuadorsucre
swedenkrona0.1029 $
switzerlandfranc0.64 $
taiwandollar0.0294 $
thailandbaht0.02357 $
THBthailandbaht
TRL0.00000070 $
TWDtaiwandollar
unitedarabdirham0.2723 $
uruguaypeso0.0599 $
USDdollar
venezuelabolivar0.00086 $
yenjapanyen
ZARsouthafricarand

Computer:
1024 megabyte
baudbit/sec
block512 byte
byte8 bit
gigabyte
kbyte1024 byte
megabyte1024 kbyte
megmegabyte
word2 byte (Not necessarily true on all systems!)

Everything else:
%1/100
abampere10 ampere
admiraltyknot6080 ft/hr
amuatomicmassunit
apostilbcd/pi-m2
are1e+2 m2
arpentcan27.52 mi
arpentlin191.835 ft
asbapostilb
astronomicalunitau
atmatmosphere
atmosphere1.01325e+5 nt/m2
atomicmassunit1.6605402e-27 kg fuzz
bag94 lb
bakersdozen13
bar1e+5 nt/m2
barie1e-1 nt/m2
barleycorn1/3 in
barn1e-28 m2
barrel42 gal (oil barrel, nothing else)
barye1e-1 nt/m2
barylmicrobar
becquerel1/3.7e10 curie
bev1e+9 e-volt
biot10 amp
blondelcd/pi-m2
boardfoot144 in3
bohrradiushbar2-C2/8.988e9 N m2-e2-electronmass
bolt40 yd (Defn of bolt is also an area, but depends on type of cloth)
bottommeasure1/40 in
brewster1e-12 m2/newton
britishthermalunit1.05506e+3 joule fuzz
btubritishthermalunit
buckdollar
cable720 ft
caliber1e-2 in
caloriecal
candle1.02 candela
carat205 mg
caratgold1/24
cental100 lb
centcentidollar
centesimalminute1e-2 grade
centesimalsecond1e-4 grade
century100 year
cfsft3/sec
chain66 ft
circularinch1/4 pi-in2
circularmil1e-6/4 pi-in2
clusec1e-8 mm-hg m3/s
coomb4 bu
cord128 ft3
cordfootcord
cottonyarncount2520 ft/pound
cran37.5 brgallon
crith9.06e-2 gm
cubit18 inch
cup1/2 pt
curie3.7e+10 /sec
daltonamu
debye3.33564e-30 coul-m
decade10 yr
degCK
degF5/9 degC
degrankinedegreesrankine
degreaumur10/8 degC
degreerankinedegF
degreesrankinedegF
denier.05/450 gram / m
dipotre/m
displacementton35 ft3
doppelzentner100 kg
dozen12
drachm60 grain
drop0.03 cm3
dynecm-gm/sec2
electronvolte-volt
ell45 in
engineerschain100 ft
engineerslink100/100 ft
englishell45 inch
equivalentfootcandlelumen/pi-ft2
equivalentluxlumen/pi-m2
equivalentphotcd/pi-cm2
ergcm2-gm/sec2
eVe V
eve-volt
faraday9.6485309e+4 coul
fathom6 ft
fermi1e-15 m
fifth4/5 qt
fin5 dollar
finger7/8 in
firkin9 gal
flemishell27 inch
footcandlelumen/ft2
footlambertcd/pi-ft2
fortnight14 da
franklin3.33564e-10 coul
frenchfeetfrenchfoot
frenchfoot16/15 ft
fresnel1e12 hertz
frigoriekilocal
furlong220 yd
galileo1e-2 m/sec2
gamma1e-9 weber/m2
gauss1e-4 weber/m2
geodeticfootbritish-ft
geographicalmile1852 m
Ggauss
gilbert2.5 amp/pi
gill1/4 pt
grammegram
gross144
gunterschain22 yd
hand4 in
hartree2 rydberg
hdhogshead
headwater (pumps are often in "feet head", assuming feet of water)
hectare1e+4 m2
hefnercandle0.92 cd
hertz/sec
hogshead2 barrel
homestead1/4 mi2
horsepower735.50 watt (horsepower is not uniquely defined)
hphorsepower
hubble1e9 ly
hylgm force sec2/m
Hzhertz
hz/sec
imaginarycubicfoot1.4 ft3
iudiptheria62.8 microgram
iuinsulin41.67 microgram
iupenicillin0.6 microgram
jansky1e-26 W/m2-Hz
jeroboam4/5 gal
jewlerspoint2 milligram
Jyjansky
k1.38047e-16 erg/degC
karat1/24
kayser/cm
kcalkilocal
kcaloriekilocal
kelvinK
keykg
kilderkin18 gal
kilohmkiloohm
kip1000 lbf
knknot
knotnmile/hr
lambertcd/pi-cm2
langleycal/cm2
last80 bu
Lblambert
league3 mi
lightyearc-yr
line1/12 in
linenyarncount900 ft/pound
link66/100 ft
litreliter
longhundredweight112 lb
longquarter28 lb
lunarmonth29.5305555 day
lunaryear12 lunarmonth
lusec1e-6 mm-hg m3/s
lylightyear
mach331.46 m/sec
magnum2 qt
marineleague3 nmile
maxwell1e-8 weber
m_earth5.97223e24 kg
megohmmegaohm
metremeter
metriccarat200 mg
metricyarncountmeter/gram
mgdmegagal/day
mhmillihenry
mil1e-3 in
militarypace2.5 feet
millennium1000 year
minersinch1.5 ft3/min
minim1/60 fldr
m_moon7.34e22 kg
momonth
mpgmile/gal
mphmile/hr
m_sun1.98843e30 kg
Mxmaxwell
nail1/16 yd
nauticalmilenmile
nitcd/m2
noggin1/8 qt
nox1e-3 lux
nsnanosec
Oeoersted
oersted2.5e+2 amp/m/pi
pace36 in
pair2
palm3 in
Papascal
parasang3.5 mi
parsecAU-radian/arcsec
pascalnt/m2
pcparsec
pdlpoundal
pennyweight1/20 oz
percent%
perchrd
photlumen/cm2
pica1/6 in
pieze1e+3 nt/m2
pipe4 barrel
point1/72 in
poisegm/cm-sec
polerd
poncelet100 kg m g / sec
pond9.80665e-3 nt
poundalft-lb/sec2
Ppoise
proof1/200
psilb-g/in2
pulsatance2 pi/sec
pwtpennyweight
quarter9 in
quartersection1/4 mi2
quintal100 kg
quire25
rad100 erg/gm
ream500
refrigeration12000 btu/ton-hour
registerton100 ft3
rehoboam156 floz
rem0.01 J/kg
rhe10 m2/nt-sec
roentgenrontgen
rontgen2.58e-4 curie/kg
rood1.21e+3 yd
rope20 ft
rpmrev/minute
rpsrev/sec
rutherford1e+6 /sec
rydbergconst0.5 electronmass-c-alpha2/planck
rydbergrydbergconst-planck-c
sabin1 ft2
sack3 bu
sbstilb
score20
scottishell37.2 inch
seam8 bu
sectionmi2
shippington40 ft3
shorthundredweight100 lb
shortquarter25 lb
siderealday23.934469444 hour
siderealmonth27.32152777 day
siderealyear365.256360417 day
siemens1/ohm
sievert8.4 rontgen
sigmamicrosec
skein120 yd
skot1e-3 apostilb
sluglb-g-sec2/ft
smoot67 in
solaryearyear
span9 in
spat4 pi sr
spindle14400 yd
square100 ft2
statamp1/2.99792458e9 amp
statamperestatamp
statcoul1/2.99792458e9 coul
statcoulombstatcoul
statvolt2.99792458e2 volt
sterem3
sthene1e+3 nt
stilbcd/cm2
stoke1e-4 m2/sec
stone14 lb
strike2 bu
surveyfootbritish-ft
surveyorschain66 ft
surveyorslink66/100 ft
surveyyard3 surveyfoot
synodicmonthlunarmonth
tablespoon4 fldr
teaspoon4/3 fldr
teslaweber/m2
tex0.001 gram / m
therm1e+5 btu
thermie1e+6 cal
timberfootft3
tnt4.6e+6 m2/sec2
toise6 frenchfeet
tonne1e+6 gm
torrmm hg
township36 mi2
tropicalyearyear
Ttesla
tun8 barrel
Vvolt
watergram g / cc
wey40 bu
weymass252 lb
worstedyarncount1680 ft/pound
Xunit1.00206e-13 m

AB1JX / calcs