units.lib revision 129873
1/ $FreeBSD: head/usr.bin/units/units.lib 129873 2004-05-30 16:09:12Z dwmalone $
2
3/ primitive units
4
5m			!a!
6kg			!b!
7sec			!c!
8coul			!d!
9candela			!e!
10dollar			!f!
11bit			!h!
12erlang			!i!
13K			!j!
14
15/ prefixes
16
17yotta-			1e24
18zetta-			1e21
19exa-			1e18
20peta-			1e15
21tera-			1e12
22giga-			1e9
23mega-			1e6
24myria-			1e4
25kilo-			1e3
26hecto-			1e2
27deka-			1e1
28deci-			1e-1
29centi-			1e-2
30milli-			1e-3
31micro-			1e-6
32nano-			1e-9
33pico-			1e-12
34femto-			1e-15
35atto-			1e-18
36zopto-			1e-21
37yocto-			1e-24
38
39semi-			.5
40demi-			.5
41
42Y-			yotta
43Z-			zetta
44E-			exa
45P-			peta
46T-			tera
47G-			giga
48M-			mega
49k-			kilo
50h-			hecto
51da-			deka
52d-			deci
53c-			centi
54m-			milli
55n-			nano
56p-			pico
57f-			femto
58a-			atto
59z-			zopto
60y-			yocto
61
62/ binary prefixes introduced in 1999
63exbi-			1152921504606846976
64pebi-			1125899906842624
65tebi-			1099511627776
66gibi-			1073741824
67mebi-			1048576
68kibi-			1024
69
70Ei-			exbi
71Pi-			pebi
72Ti-			tebi
73Gi-			gibi
74Mi-			mebi
75Ki-			kibi
76
77/ constants
78
79fuzz			1
80pi			3.14159265358979323846
81c			2.99792458e+8 m/sec fuzz
82g			9.80665 m/sec2
83bigG			6.67390e-11 m3/kg/s2
84au			1.49597871e+11 m fuzz
85mole			6.022169e+23 fuzz
86e			1.6021917e-19 coul fuzz
87energy			c2
88force			g
89mercury			1.33322e+5 kg/m2-sec2
90hg			mercury
91
92/ dimensionless
93
94radian			.5 / pi
95degree			1|180 pi-radian
96circle			2 pi-radian
97turn			2 pi-radian
98revolution			turn
99rev			turn
100grade			.9 degree
101arcdeg			1 degree
102arcmin			1|60 arcdeg
103ccs			1|36 erlang
104arcsec			1|60 arcmin
105
106steradian		radian2
107sphere			4 pi-steradian
108sr			steradian
109
110/ Time
111
112second			sec
113s			sec
114minute			60 sec
115min			minute
116hour			60 min
117hr			hour
118day			24 hr
119da			day
120week			7 day
121year			365.24219879 day fuzz
122yr			year
123month			1|12 year
124us			microsec
125
126/ Mass
127
128gram			millikg
129gm			gram
130metricton		kilokg
131
132/ Avoirdupois
133
134lb			.45359237 kg
135pound			lb
136lbf			lb g
137ounce			1|16 lb
138oz			ounce
139dram			1|16 oz
140dr			dram
141grain			1|7000 lb
142gr			grain
143shortton		2000 lb
144ton			shortton
145longton			2240 lb
146
147/ Apothecary
148
149scruple			20 grain
150apdram			60 grain
151apounce			480 grain
152appound			5760 grain
153troypound		appound
154
155/ Length
156
157meter			m
158micron			micrometer
159angstrom		decinanometer
160
161inch			2.54 cm
162in			inch
163foot			12 in
164feet			foot
165ft			foot
166yard			3 ft
167yd			yard
168rod			5.5 yd
169rd			rod
170mile			5280 ft
171mi			mile
172
173british			1200|3937 m/ft
174nmile			1852 m
175
176acre			4840 yd2
177
178cc			cm3
179liter			kilocc
180ml			milliliter
181
182/ US Liquid
183
184gallon			231 in3
185imperial		1.20095
186gal			gallon
187quart			1|4 gal
188qt			quart
189pint			1|2 qt
190pt			pint
191
192floz			1|16 pt
193fldr			1|8 floz
194shot			3|2 floz
195
196/ US Dry
197
198dry			268.8025 in3/gallon fuzz
199peck			8 dry-quart
200pk			peck
201bushel			4 peck
202bu			bushel
203chaldron		36 bushel
204
205/ British
206
207brgallon		277.420 in3 fuzz
208brquart			1|4 brgallon
209brpint			1|2 brquart
210brfloz			1|20 brpint
211brpeck			554.84 in3 fuzz
212brbushel		4 brpeck
213brhundredweight		112 lb
214
215/ Energy Work
216
217newton			kg-m/sec2
218nt			newton
219N			newton
220joule			nt-m
221cal			4.1868 joule
222
223/ Electrical
224
225coulomb			coul
226C			coul
227ampere			coul/sec
228amp			ampere
229watt			joule/sec
230volt			watt/amp
231ohm			volt/amp
232mho			/ohm
233farad			coul/volt
234henry			sec2/farad
235weber			volt-sec
236
237/ Light
238
239cd			candela
240lumen			cd sr
241lux			cd sr/m2
242
243/ Wall Street Journal, July 2, 1993
244
245$			dollar
246argentinapeso		$
247australiadollar		.66 $
248bahraindinar		2.6522 $
249brazilcruzeiro		.000019 $
250britainpound		1.49 $
251canadadollar		.77 $
252czechkoruna		.034 $
253chilepeso		.0025 $
254chinarenminbi		.174856 $
255colombiapeso		.001495 $
256denmarkkrone		.15 $
257ecuadorsucre		.000539 $
258greatbritainpound	britainpound
259greecedrachma		.0043 $
260hongkongdollar		.13  $
261hungaryforint		.011 $
262indiarupee		.03211 $
263indonesiarupiah		.0004782 $
264israelshekel		.3642 $
265japanyen		.0093 $
266jordandinar		1.4682 $
267kuwaitdinar		3.3173 $
268lebanonpound		.000578 $
269malaysiaringgit		.338 $
270maltalira		2.6042 $
271mexicopeso		.3205128 $
272newzealanddollar	.539 $
273norwaykrone		.139 $
274pakistanrupee		.037 $
275perunewsol		.5065 $
276philippinespeso		.03738 $
277polandzloty		.000059 $
278saudiarabiariyal	.26702 $
279singaporedollar		.6157 $
280slovakkoruna		.034 $
281southafricarand		.21 $
282southkoreawon		.001 $
283swedenkrona		.13 $
284switzerlandfranc	.66 $
285taiwandollar		.038285 $
286thailandbaht		.03962 $
287turkeylira		.0000929 $
288unitedarabdirham	.2723 $
289uruguaynewpeso		.246852 $
290venezuelabolivar	.011 $
291
292/ EMU currencies have constant exchange rate against Euro since 1.1.1999
293austriaschilling	1|13.7603 euro
294belgiumfranc		1|40.3399 euro
295finlandmarkka		1|5.94573 euro
296francefranc		1|6.55957 euro
297germanymark		1|1.95583 euro
298irelandpunt		1|0.787564 euro
299italylira		1|1936.27 euro
300netherlandsguilder	1|2.20371 euro
301portugalescudo		1|200.482 euro
302spainpeseta		1|166.386 euro
303
304/ rate of euro against dollar from 2002-07-09
305euro			0.99 $
306
307mark			germanymark
308bolivar			venezuelabolivar
309peseta			spainpeseta
310rand			southafricarand
311escudo			portugalescudo
312sol			perusol
313guilder			netherlandsguilder
314hollandguilder		netherlandsguilder
315peso			mexicopeso
316yen			japanyen
317lira			italylira
318rupee			indiarupee
319drachma			greecedrachma
320franc			francefranc
321markka			finlandmarkka
322sucre			ecuadorsucre
323poundsterling		britainpound
324cruzeiro		brazilcruzeiro
325
326/ computer
327
328baud			bit/sec
329byte			8 bit
330block			512 byte
331kbyte			1024 byte
332megabyte		1024 kbyte
333gigabyte		1024 megabyte
334terabyte		1024 gigabyte
335petabyte		1024 terabyte
336exabyte			1024 petabyte
337zettabyte		1024 exabyte
338yottabyte		1024 zettabyte
339kilobyte		kbyte
340meg			megabyte
341
342
343/ Trivia
344
345%			1|100
346admiraltyknot		6080 ft/hr
347apostilb		cd/pi-m2
348are			1e+2 m2
349arpentcan		27.52 mi
350arpentlin		191.835 ft
351astronomicalunit	au
352atmosphere		1.01325e+5 nt/m2
353atm			atmosphere
354atomicmassunit		1.66044e-27 kg fuzz
355amu			atomicmassunit
356bag			94 lb
357bakersdozen		13
358bar			1e+5 nt/m2
359barie			1e-1 nt/m2
360barleycorn		1|3 in
361barn			1e-28 m2
362barrel			42 gal
363barye			1e-1 nt/m2
364bev			1e+9 e-volt
365biot			10 amp
366blondel			cd/pi-m2
367boardfoot		144 in3
368bolt			40 yd
369bottommeasure		1|40 in
370britishthermalunit	1.05506e+3 joule fuzz
371btu			britishthermalunit
372refrigeration		12000 btu/ton-hour
373buck			dollar
374cable			720 ft
375caliber			1e-2 in
376calorie			cal
377carat			205 milligram
378caratgold		1|24
379cent			centidollar
380cental			100 lb
381centesimalminute	1e-2 grade
382centesimalsecond	1e-4 grade
383century			100 year
384cfs			ft3/sec
385chain			66 ft
386circularinch		1|4 pi-in2
387circularmil		1e-6|4 pi-in2
388clusec			1e-8 mm-hg m3/s
389coomb			4 bu
390cord			128 ft3
391cordfoot		cord
392crith			9.06e-2 gm
393cubit			18 in
394cup			1|2 pt
395curie			3.7e+10 /sec
396dalton			amu
397decade			10 yr
398dipotre			/m
399displacementton		35 ft3
400doppelzentner		100 kg
401dozen			12
402drop			.03 cm3
403dyne			cm-gm/sec2
404electronvolt		e-volt
405ell			45 in
406engineerschain		100 ft
407engineerslink		100|100 ft
408equivalentfootcandle	lumen/pi-ft2
409equivalentlux		lumen/pi-m2
410equivalentphot		cd/pi-cm2
411erg			cm2-gm/sec2
412ev			e-volt
413faraday			9.652e+4 coul
414fathom			6 ft
415fermi			1e-15 m
416fifth			4|5 qt
417fin			5 dollar
418finger			7|8 in
419firkin			9 gal
420footcandle		lumen/ft2
421footlambert		cd/pi-ft2
422fortnight		14 da
423franklin		3.33564e-10 coul
424frigorie		kilocal
425furlong			220 yd
426galileo			1e-2 m/sec2
427gamma			1e-9 weber/m2
428gauss			1e-4 weber/m2
429geodeticfoot		british-ft
430geographicalmile	1852 m
431gilbert			7.95775e-1 amp
432gill			1|4 pt
433gross			144
434gunterschain		22 yd
435hand			4 in
436hectare			1e+4 m2
437hefnercandle		.92 cd
438hertz			/sec
439Hz			hertz
440hogshead		2 barrel
441hd			hogshead
442homestead		1|4 mi2
443horsepower		550 ft-lb-g/sec
444hp			horsepower
445hyl			gm force sec2/m
446hz			/sec
447imaginarycubicfoot	1.4 ft3
448jeroboam		4|5 gal
449karat			1|24
450key			kg
451khz			1e+3 /sec
452kilderkin		18 gal
453knot			nmile/hr
454lambert			cd/pi-cm2
455langley			cal/cm2
456last			80 bu
457league			3 mi
458lightyear		c-yr
459line			1|12 in
460link			66|100 ft
461longhundredweight	112 lb
462longquarter		28 lb
463lusec			1e-6 mm-hg m3/s
464m_earth			5.97223e24 kg
465m_moon			7.34e22 kg
466m_sun			1.98843e30 kg
467mach			331.46 m/sec
468magnum			2 qt
469marineleague		3 nmile
470maxwell			1e-8 weber
471metriccarat		200 milligram
472mgd			megagal/day
473mh			millihenry
474mhz			1e+6 /sec
475mil			1e-3 in
476millennium		1000 year
477minersinch		1.5 ft3/min
478minim			1|60 fldr
479mo			month
480mpg			mile/gal
481mph			mile/hr
482nail			1|16 yd
483nauticalmile		nmile
484nit			cd/m2
485noggin			1|8 qt
486nox			1e-3 lux
487oersted			2.5e+2 pi-amp/m
488oe			oersted
489pace			36 in
490palm			3 in
491parasang		3.5 mi
492parsec			au-radian/arcsec
493pascal			nt/m2
494pc			parsec
495pennyweight		1|20 oz
496pwt			pennyweight
497percent			%
498perch			rd
499pf			picofarad
500phot			lumen/cm2
501pica			1|6 in
502pieze			1e+3 nt/m2
503pipe			4 barrel
504point			1|72 in
505poise			gm/cm-sec
506pole			rd
507poundal			ft-lb/sec2
508pdl			poundal
509proof			1|200
510psi			lb-g/in2
511quarter			9 in
512quartersection		1|4 mi2
513quintal			100 kg
514quire			25
515r_earth                 6.378e8 cm
516r_moon                  1.738e7 cm
517r_sun                   6.9599e10 cm
518rad			100 erg/gm
519ream			500
520registerton		100 ft3
521rehoboam		156 floz
522rhe			10 m2/nt-sec
523rontgen			2.58e-4 curie/kg
524rood			1.21e+3 yd
525rope			20 ft
526rutherford		1e+6 /sec
527rydberg			1.36054e+1 ev
528sabin			1 ft2
529sack			3 bu
530seam			8 bu
531section			mi2
532shippington		40 ft3
533shorthundredweight	100 lb
534shortquarter		25 lb
535siemens			/ohm
536sigma			microsec
537skein			120 yd
538skot			1e-3 apostilb
539slug			lb-g-sec2/ft
540span			9 in
541spat			4 pi sr
542spindle			14400 yd
543square			100 ft2
544stere			m3
545sthene			1e+3 nt
546stilb			cd/cm2
547stoke			1e-4 m2/sec
548stone			14 lb
549strike			2 bu
550surveyfoot		british-ft
551surveyyard		3 surveyfoot
552surveyorschain		66 ft
553surveyorslink		66|100 ft
554tablespoon		4 fldr
555tbl			tablespoon
556tbsp			tablespoon
557teaspoon		4|3 fldr
558tesla			weber/m2
559therm			1e+5 btu
560thermie			1e+6 cal
561timberfoot		ft3
562tnt			4.6e+6 m2/sec2
563tonne			1e+6 gm
564torr			mm hg
565township		36 mi2
566tsp			teaspoon
567tun			8 barrel
568water			gram g / cc
569wey			40 bu
570weymass			252 lb
571Xunit			1.00202e-13 m
572k			1.38047e-16 erg/degC
573
574
575degC			K
576kelvin			K
577brewster		1e-12 m2/newton
578degF			5|9 degC
579degreesrankine		degF
580degrankine		degreesrankine
581degreerankine		degF
582degreaumur		10|8 degC
583drachm			60 grain
584poncelet		100 kg m g / sec
585denier			.05|450 gram / m
586tex			.001 gram / m
587englishell		45 inch
588scottishell		37.2 inch
589flemishell		27 inch
590planck			6.626e-34 joule-sec
591hbar			1.055e-34 joule-sec
592electronmass		9.1095e-31 kg
593protonmass		1.6726e-27 kg
594neutronmass		1.6606e-27 kg
595V			volt
596eV			e V
597bohrradius		hbar2-C2/8.988e9 N m2-e2-electronmass
598becquerel		1|3.7e10 curie
599fresnel			1e12 hertz
600statcoul		1|2.99792458e9 coul
601statamp			1|2.99792458e9 amp
602statvolt		2.99792458e2 volt
603statcoulomb		statcoul
604statampere		statamp
605debye			3.336e-30 coul-m
606pulsatance		2 pi/sec
607rpm			rev/minute
608rps			rev/sec
609kilohm			kiloohm
610megohm			megaohm
611siderealyear		365.256360417 day
612siderealday		23.934469444 hour
613siderealhour		1|24 sidereal day
614lunarmonth		29.5305555 day
615synodicmonth		lunarmonth
616siderealmonth		27.32152777 day
617tropicalyear		year
618solaryear		year
619lunaryear		12 lunarmonth
620cran			37.5 brgallon
621kip			1000 lbf
622frenchfoot		16|15 ft
623frenchfeet		frenchfoot
624toise			6 frenchfeet
625sievert			8.4 rontgen
626candle			1.02 candela
627militarypace		2.5 feet
628metre			meter
629litre			liter
630gramme			gram
631iudiptheria		62.8 microgram
632iupenicillin		.6 microgram
633iuinsulin		41.67 microgram
634cottonyarncount		2520 ft/pound
635linenyarncount		900 ft/pound
636worstedyarncount	1680 ft/pound
637metricyarncount		meter/gram
638jewlerspoint		2 milligram
639
640