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