1/ $FreeBSD: src/usr.bin/units/units.lib,v 1.19.2.1.2.1 2009/10/25 01:10:29 kensmith Exp $
2
3/ primitive units
4
5m			!a!
6kg			!b!
7sec			!c!
8coul			!d!
9candela			!e!
10usdollar		!f!
11euro			!g!
12bit			!h!
13erlang			!i!
14K			!j!
15
16/ prefixes
17
18yotta-			1e24
19zetta-			1e21
20exa-			1e18
21peta-			1e15
22tera-			1e12
23giga-			1e9
24mega-			1e6
25myria-			1e4
26kilo-			1e3
27hecto-			1e2
28deka-			1e1
29deca-			deka
30deci-			1e-1
31centi-			1e-2
32milli-			1e-3
33micro-			1e-6
34nano-			1e-9
35pico-			1e-12
36femto-			1e-15
37atto-			1e-18
38zopto-			1e-21
39zepto-			zopto
40yocto-			1e-24
41
42semi-			.5
43demi-			.5
44
45Y-			yotta
46Z-			zetta
47E-			exa
48P-			peta
49T-			tera
50G-			giga
51M-			mega
52k-			kilo
53h-			hecto
54da-			deka
55d-			deci
56c-			centi
57m-			milli
58n-			nano
59p-			pico
60f-			femto
61a-			atto
62z-			zopto
63y-			yocto
64
65/ binary prefixes introduced in 1999
66exbi-			1152921504606846976
67pebi-			1125899906842624
68tebi-			1099511627776
69gibi-			1073741824
70mebi-			1048576
71kibi-			1024
72
73Ei-			exbi
74Pi-			pebi
75Ti-			tebi
76Gi-			gibi
77Mi-			mebi
78Ki-			kibi
79
80/ constants
81
82fuzz			1
83pi			3.14159265358979323846
84c			2.99792458e+8 m/sec
85g0			9.80665 m/sec2
86g			g0
87bigG			6.67428e-11 m3/kg/s2
88AU			1.49597870691e+11 m fuzz
89au			AU
90mole			6.0221417930e+23 fuzz
91e			1.6021917e-19 coul fuzz
92energy			c2
93force			g
94mercury			1.3332239e+5 kg/m2-sec2
95hg			mercury
96mmHg			0.001 m hg
97#mu			4.e-7 pi-N/A2
98epsilon			1.0 /mu/c2
99alpha			0.5 mu-c-e2/planck
100planck			6.6260755e-34 joule-sec
101hbar			0.5 planck/pi
102electronmass		9.1093821545-31 kg
103protonmass		1.6726217129-27 kg
104neutronmass		1.6749272928-27 kg
105
106/ dimensionless
107
108radian			.5 / pi
109degree			1|180 pi-radian
110circle			2 pi-radian
111turn			2 pi-radian
112revolution		turn
113rev			turn
114grade			.9 degree
115arcdeg			1 degree
116arcmin			1|60 arcdeg
117ccs			1|36 erlang
118arcsec			1|60 arcmin
119
120steradian		radian2
121sphere			4 pi-steradian
122sr			steradian
123
124/ Time
125
126second			sec
127s			sec
128minute			60 sec
129min			minute
130hour			60 min
131hr			hour
132day			24 hr
133da			day
134week			7 day
135year			365.24219879 day fuzz
136yr			year
137month			1|12 year
138us			microsec
139
140/ Mass
141
142gram			millikg
143gm			gram
144metricton		kilokg
145
146/ Avoirdupois
147
148lb			.45359237 kg
149pound			lb
150lbf			lb g
151ounce			1|16 lb
152oz			ounce
153dram			1|16 oz
154dr			dram
155grain			1|7000 lb
156gr			grain
157shortton		2000 lb
158ton			shortton
159longton			2240 lb
160
161/ Apothecary
162
163scruple			20 grain
164apdram			60 grain
165apounce			480 grain
166appound			5760 grain
167troypound		appound
168
169/ Mining
170
171troyounce		apounce
172troz			apounce
173pennyweight		1|20 troz
174pwt			pennyweight
175dwt			pennyweight
176
177/ Length
178
179meter			m
180micron			micrometer
181angstrom		decinanometer
182ao			0.25 alpha/pi/rydbergconst
183
184inch			2.54 cm
185in			inch
186foot			12 in
187feet			foot
188ft			foot
189yard			3 ft
190yd			yard
191rod			5.5 yd
192rd			rod
193mile			5280 ft
194mi			mile
195
196british			1200|3937 m/ft
197nmile			1852 m
198
199acre			4840 yd2
200
201cc			cm3
202liter			kilocc
203ml			milliliter
204
205/ US Liquid
206
207gallon			231 in3
208imperial		1.20095
209gal			gallon
210quart			1|4 gal
211qt			quart
212pint			1|2 qt
213pt			pint
214
215floz			1|16 pt
216fldr			1|8 floz
217shot			3|2 floz
218
219/ US Dry
220
221dry			268.8025 in3/gallon fuzz
222peck			8 dry-quart
223pk			peck
224bushel			4 peck
225bu			bushel
226chaldron		36 bushel
227
228/ British
229
230brgallon		277.420 in3 fuzz
231brquart			1|4 brgallon
232brpint			1|2 brquart
233brfloz			1|20 brpint
234brpeck			554.84 in3 fuzz
235brbushel		4 brpeck
236brhundredweight		112 lb
237
238/ Bottles
239
240bottle			750 milliliter
241/bottle			fifth
242
243miniature		100 milliliter
244split			1|4 bottle
245half			1|2 bottle
246magnum			2 bottle
247jeroboam		4 bottle
248rehoboam		6 bottle
249methuselah		8 bottle
250salmanazar		12 bottle
251balthazar		16 bottle
252nebuchadnezzar		20 bottle
253sovereign		34 bottle
254
255/ Bottles - alternate names and spellings
256
257pony			split
258fillette		half
259tappit-hen		3 imperial
260rheoboam		rehoboam
261shalmaneser		salmanazar
262
263/ Russian
264berkovets		10 pood
265pood			40 funt
266funt			0.40951 kg
267lot			1|32 funt
268zolotnik		1|3 lot
269dolya			1|96 zolotnik
270rumile			7 verst
271mezhevayaverst		2 verst
272verst			1066.8 m
273sazhen			1|500 verst
274kosayasazhen		1|430.2 verst
275arshin			1|1500 verst
276/ is not exactly defined
277ruell			16.54 in
278liniya			1|10 in
279vershok			1.75 in
280pyad			7 in
281vedro			12.3 liter
282shtoff			1|10 vedro
283vinebottle		1|16 vedro
284vodkabottle		1|20 vedro
285charka			1|100 vedro
286shkalik			1|200 vedro
287desyatina_state		109.3 are
288desyatina_farmery	0.75 desyatina_state
289sqverst			104.2 desyatina_state
290sqarshin		1|21600 desyatina_state
291sqfoot			1|117600 desyatina_state
292
293/ Energy Work
294
295newton			kg-m/sec2
296nt			newton
297N			newton
298joule			nt-m
299J			joule
300cal			4.1868 joule
301
302/ Electrical
303
304coulomb			coul
305C			coul
306ampere			coul/sec
307A			ampere
308amp			ampere
309watt			joule/sec
310W			watt
311volt			watt/amp
312ohm			volt/amp
313mho			/ohm
314farad			coul/volt
315F			farad
316henry			sec2/farad
317H			henry
318weber			volt-sec
319Wb			weber
320
321/ Light
322
323cd			candela
324lumen			cd sr
325lux			cd sr/m2
326
327/ EMU currencies have constant exchange rate against Euro since 1.1.1999.
328/ See http://en.wikipedia.org/wiki/Euro for details.
329austriaschilling	1|13.7603 euro
330belgiumfranc		1|40.3399 euro
331finlandmarkka		1|5.94573 euro
332francefranc		1|6.55957 euro
333germanymark		1|1.95583 euro
334greecedrachma		1|340.750 euro
335irelandpunt		1|0.787564 euro
336italylira		1|1936.27 euro
337luxembourgfranc		1|40.3399 euro
338netherlandsguilder	1|2.20371 euro
339portugalescudo		1|200.482 euro
340spainpeseta		1|166.386 euro
341sloveniantolar		1|239.640 euro
342cypriotpound		1|0.585274 euro
343malteselira		1|0.429300 euro
344slovakkoruna		1|30.1260 euro
345
346/ These ones are pegged to the Euro
347/ See http://en.wikipedia.org/wiki/Euro for details.
348bosniaherzegovinamark	1|1.95583 euro
349bulgarianlev		1|1.95583 euro
350capeverdeanescudo	1|110.265 euro
351centralafricancfafranc	1|655.957 euro
352comorosfranc		1|491.96775 euro
353danishkrone		1|7.46038 euro
354estoniakroon		1|15.6466 euro
355lithuanianlitas		1|3.45280 euro
356pacificfrancexchange	1|0.00838 euro
357westafricancfafranc	1|655.957 euro
358
359/ These ones are pegged on the US Dollar
360/ See http://en.wikipedia.org/wiki/USD for details.
361dollar			usdollar
362arubanflorin		1|1.75 usdollar
363bahamiandollar		1|1 usdollar
364bahrainidinar		1|0.376 usdollar
365barbadiandollar		1|2 usdollar
366belizedollar		1|2 usdollar
367belarusianruble		1|2135 usdollar
368bermudiandollar		1|1 usdollar
369caymanislandsdollar	1.2 usdollar
370cubanconvertiblepeso	1.08 usdollar
371djiboutianfranc		1|177.721 usdollar
372eastcaribbeandollar	1|2.7 usdollar
373eritreannakfa		1|15 usdollar
374hongkongdollar		1|7.80 usdollar
375macanesepatacas		1|1.03 hongkongdollar
376jordaniandinar		1|0.709 usdollar
377lebanesepound		1|1507.5 usdollar
378maldivianrufiyaa	1|12.8 usdollar
379netherlandsantilleanguilder	1|1.79 usdollar
380omanirial		2.6008 usdollar
381qataririyal		1|3.64 usdollar
382saudiriyal		1|3.75 usdollar
383unitedarabemiratesdirham	1|3.6725 usdollar
384
385bosniamark		bosniaherzegovinamark
386cfafranc		centralafricancfafranc
387cfpfranc		pacificfrancexchange
388drachma			greecedrachma
389escudo			portugalescudo
390franc			francefranc
391guilder			netherlandsguilder
392herzegovinamark		bosniaherzegovinamark
393hollandguilder		netherlandsguilder
394lira			italylira
395mark			germanymark
396markka			finlandmarkka
397peseta			spainpeseta
398rand			southafricarand
399
400/ computer
401
402baud			bit/sec
403nibble			4 bit
404nybble			nibble
405byte			8 bit
406word			2 byte
407block			512 byte
408kbyte			1024 byte
409megabyte		1024 kbyte
410gigabyte		1024 megabyte
411terabyte		1024 gigabyte
412petabyte		1024 terabyte
413exabyte			1024 petabyte
414zettabyte		1024 exabyte
415yottabyte		1024 zettabyte
416kilobyte		kbyte
417meg			megabyte
418
419
420/ Trivia
421
422%			1|100
423abampere		10 ampere
424admiraltyknot		6080 ft/hr
425apostilb		cd/pi-m2
426are			1e+2 m2
427asb			apostilb
428arpentcan		27.52 mi
429arpentlin		191.835 ft
430astronomicalunit	au
431atmosphere		1.01325e+5 nt/m2
432atm			atmosphere
433atomicmassunit		1.66053878283e-27 kg fuzz
434# year			3.15569259747e7 sec fuzz
435amu			atomicmassunit
436bag			94 lb
437bakersdozen		13
438bar			1e+5 nt/m2
439barie			1e-1 nt/m2
440barleycorn		1|3 in
441barn			1e-28 m2
442oilbarrel		42 gal
443barrel			oilbarrel
444barye			1e-1 nt/m2
445baryl			microbar
446bev			1e+9 e-volt
447biot			10 amp
448blondel			cd/pi-m2
449boardfoot		144 in3
450bolt			40 yd
451bottommeasure		1|40 in
452britishthermalunit	1.05506e+3 joule fuzz
453btu			britishthermalunit
454refrigeration		12000 btu/ton-hour
455buck			usdollar
456cable			720 ft
457caliber			1e-2 in
458calorie			cal
459carat			205 milligram
460caratgold		1|24
461cent			centidollar
462cental			100 lb
463centesimalminute	1e-2 grade
464centesimalsecond	1e-4 grade
465century			100 year
466cfs			ft3/sec
467chain			66 ft
468circularinch		1|4 pi-in2
469circularmil		1e-6|4 pi-in2
470clusec			1e-8 mm-hg m3/s
471coomb			4 bu
472cord			128 ft3
473cordfoot		cord
474crith			9.06e-2 gm
475cubit			18 in
476cup			1|2 pt
477curie			3.7e+10 /sec
478dalton			amu
479decade			10 yr
480dioptre			/m
481displacementton		35 ft3
482doppelzentner		100 kg
483dozen			12
484drop			.03 cm3
485dyne			cm-gm/sec2
486electronvolt		e-volt
487ell			45 in
488engineerschain		100 ft
489engineerslink		100|100 ft
490equivalentfootcandle	lumen/pi-ft2
491equivalentlux		lumen/pi-m2
492equivalentphot		cd/pi-cm2
493erg			cm2-gm/sec2
494ev			e-volt
495faraday			9.6485309e+4 coul
496fathom			6 ft
497fermi			1e-15 m
498fifth			4|5 qt
499fin			5 usdollar
500finger			7|8 in
501firkin			9 gal
502footcandle		lumen/ft2
503footlambert		cd/pi-ft2
504fortnight		14 da
505franklin		3.33564e-10 coul
506frigorie		kilocal
507furlong			220 yd
508galileo			1e-2 m/sec2
509gamma			1e-9 weber/m2
510gauss			1e-4 weber/m2
511G			gauss
512geodeticfoot		british-ft
513geographicalmile	1852 m
514gilbert			2.5 amp/pi
515gill			1|4 pt
516gross			144
517gunterschain		22 yd
518hand			4 in
519hartree			2 rydberg
520head			water
521hectare			1e+4 m2
522hefnercandle		.92 cd
523hertz			/sec
524Hz			hertz
525hogshead		63 gallon
526hd			hogshead
527homestead		1|4 mi2
528horsepower		735.50 watt
529hp			horsepower
530hubble			1e9 ly
531hyl			gm force sec2/m
532hz			/sec
533imaginarycubicfoot	1.4 ft3
534jansky			1e-26 W/m2-Hz
535Jy			jansky
536karat			1|24
537kayser			/cm
538key			kg
539kilderkin		18 gal
540knot			nmile/hr
541kn			knot
542lambert			cd/pi-cm2
543Lb			lambert
544langley			cal/cm2
545last			80 bu
546league			3 mi
547lightyear		c-yr
548ly			lightyear
549line			1|12 in
550link			66|100 ft
551longhundredweight	112 lb
552longquarter		28 lb
553lusec			1e-6 mm-hg m3/s
554m_earth			5.97223e24 kg
555m_moon			7.34e22 kg
556m_sun			1.98843e30 kg
557mach			331.46 m/sec
558marineleague		3 nmile
559maxwell			1e-8 weber
560Mx			maxwell
561metriccarat		200 milligram
562mgd			megagal/day
563mh			millihenry
564mil			1e-3 in
565millennium		1000 year
566minersinch		1.5 ft3/min
567minim			1|60 fldr
568mo			month
569mpg			mile/gal
570mph			mile/hr
571nail			1|16 yd
572nauticalmile		nmile
573nit			cd/m2
574noggin			1|8 qt
575nox			1e-3 lux
576oersted			2.5e+2 amp/m/pi
577Oe			oersted
578pace			36 in
579pair			2
580palm			3 in
581parasang		3.5 mi
582parsec			AU-radian/arcsec
583pascal			nt/m2
584Pa			pascal
585pc			parsec
586percent			%
587perch			rd
588phot			lumen/cm2
589pica			1|6 in
590pieze			1e+3 nt/m2
591pipe			4 barrel
592point			1|72 in
593poise			gm/cm-sec
594P			poise
595pole			rd
596pond			9.80665e-3 nt
597poundal			ft-lb/sec2
598pdl			poundal
599proof			1|200
600psi			lb-g/in2
601quarter			9 in
602quartersection		1|4 mi2
603quintal			100 kg
604quire			25
605r_earth                 6.378e8 cm
606r_moon                  1.738e7 cm
607r_sun                   6.9599e10 cm
608rackunit		1.75 in
609rad			100 erg/gm
610ream			500
611registerton		100 ft3
612rem			0.01 J/kg
613rhe			10 m2/nt-sec
614rontgen			2.58e-4 curie/kg
615roentgen		rontgen
616rood			1.21e+3 yd
617rope			20 ft
618RU			rackunit
619rutherford		1e+6 /sec
620rydbergconst		0.5 elctronmass-c-alpha2/planck
621rydberg			rydbergconst-planck-c
622sabin			1 ft2
623sack			3 bu
624score			20
625seam			8 bu
626section			mi2
627shed			1e-24 barn
628shippington		40 ft3
629shorthundredweight	100 lb
630shortquarter		25 lb
631siemens			/ohm
632sigma			microsec
633skein			120 yd
634skot			1e-3 apostilb
635slug			lb-g-sec2/ft
636smoot			67 in
637span			9 in
638spat			4 pi sr
639spindle			14400 yd
640square			100 ft2
641stere			m3
642sthene			1e+3 nt
643stilb			cd/cm2
644sb			stilb
645stoke			1e-4 m2/sec
646stone			14 lb
647strike			2 bu
648surveyfoot		british-ft
649surveyyard		3 surveyfoot
650surveyorschain		66 ft
651surveyorslink		66|100 ft
652tablespoon		4 fldr
653tbl			tablespoon
654tbsp			tablespoon
655teaspoon		4|3 fldr
656tesla			weber/m2
657T			tesla
658therm			1e+5 btu
659thermie			1e+6 cal
660timberfoot		ft3
661tnt			4.6e+6 m2/sec2
662tonne			1e+6 gm
663torr			mm hg
664township		36 mi2
665tsp			teaspoon
666tun			8 barrel
667water			gram g / cc
668wey			40 bu
669weymass			252 lb
670Xunit			1.00206e-13 m
671k			1.38047e-16 erg/degC
672
673
674degC			1&+273.15 K
675kelvin			K
676brewster		1e-12 m2/newton
677degF			5|9&255.37222222222222222222 K
678degreesrankine		5|9 K
679degrankine		degreesrankine
680degreerankine		degreesrankine
681degreaumur		10|8&+273.15 K
682drachm			60 grain
683poncelet		100 kg m g / sec
684denier			.05|450 gram / m
685tex			.001 gram / m
686englishell		45 inch
687scottishell		37.2 inch
688flemishell		27 inch
689V			volt
690eV			e V
691bohrradius		hbar2-C2/8.988e9 N m2-e2-electronmass
692becquerel		1|3.7e10 curie
693fresnel			1e12 hertz
694statcoul		1|2.99792458e9 coul
695statamp			1|2.99792458e9 amp
696statvolt		2.99792458e2 volt
697statcoulomb		statcoul
698statampere		statamp
699debye			3.33564e-30 coul-m
700pulsatance		2 pi/sec
701rpm			rev/minute
702rps			rev/sec
703kilohm			kiloohm
704megohm			megaohm
705siderealyear		365.256360417 day
706siderealday		23.934469444 hour
707siderealhour		1|24 sidereal day
708lunarmonth		29.5305555 day
709synodicmonth		lunarmonth
710siderealmonth		27.32152777 day
711tropicalyear		year
712solaryear		year
713lunaryear		12 lunarmonth
714cran			37.5 brgallon
715kip			1000 lbf
716frenchfoot		16|15 ft
717frenchfeet		frenchfoot
718toise			6 frenchfeet
719sievert			8.4 rontgen
720candle			1.02 candela
721militarypace		2.5 feet
722metre			meter
723litre			liter
724gramme			gram
725iudiptheria		62.8 microgram
726iupenicillin		.6 microgram
727iuinsulin		41.67 microgram
728cottonyarncount		2520 ft/pound
729linenyarncount		900 ft/pound
730worstedyarncount	1680 ft/pound
731metricyarncount		meter/gram
732jewlerspoint		2 milligram
733