Merge commit '00f1a4f432b3d8aad1aa270e91c44c57f03ef407'
[unleashed.git] / usr / src / cmd / units / unittab
blob0d1874153e9f2de4d016652a2d1f3d2c33800fe4
2 / Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
3 / Use is subject to license terms.
5 / Copyright (c) 1980 Regents of the University of California.
6 / All rights reserved.  The Berkeley Software License Agreement
7 / specifies the terms and conditions for redistribution.
10 / ident "%Z%%M% %I%     %E% SMI"
11 / dimensions
12 m                       *a*
13 kg                      *b*
14 sec                     *c*
15 coul                    *d*
16 candela                 *e*
17 dollar                  *f*
18 radian                  *g*
19 bit                     *h*
20 erlang                  *i*
21 degC                    *j*
23 / Authoritative places to get updated values:
24 /    http://physics.nist.gov/cuu/
25 /    http://www.npl.co.uk/npl/reference/index.html
26 / Less authoritative but very useful for non-SI units is
27 /    http://www.ex.ac.uk/cimt/dictunit/dictunit.htm
29 / constants
31 fuzz                    1
32 pi                      3.14159265358979323846 fuzz
33 / speed of light in a vacuum
34 c                       2.99792458+8 m/sec
35 / standard acceleration due to gravity
36 g                       9.80665 m/sec2
37 / Astronomical Unit
38 au                      1.4959787069+11 m fuzz
39 / Avagadro's number
40 mole                    6.022137+23 fuzz
41 / charge on an electron
42 e                       1.6021773-19 coul fuzz
43 / covert mass to energy (e.g., you have: kilogram energy  you want: megaton tnt)
44 energy                  c2
45 / convert mass to weight (e.g., use "lb-force" to get a pound of force)
46 force                   g
47 / density of mercury expressed as weight/volume)
48 mercury                 1.33322+5 kg/m2-sec2
49 hg                      mercury
51 / dimensionless
53 degree                  1|180 pi-radian
54 circle                  2 pi-radian
55 turn                    2 pi-radian
56 grade                   .9 degree
57 arcdeg                  1 degree
58 arcmin                  1|60 arcdeg
59 ccs                     1|36 erlang
60 arcsec                  1|60 arcmin
62 steradian               radian2
63 sphere                  4 pi-steradian
64 sr                      steradian
66 / Time
68 second                  sec
69 s                       sec
70 minute                  60 sec
71 min                     minute
72 hour                    60 min
73 hr                      hour
74 day                     24 hr
75 da                      day
76 week                    7 day
77 / Mean tropical year in the year 2000.  This decreases by .00000615 per century.
78 year                    365.2421896698 day fuzz
79 yr                      year
80 month                   1|12 year
81 ms                      millisec
82 us                      microsec
84 / Mass
86 gram                    millikg
87 gm                      gram
88 mg                      milligram
89 metricton               kilokg
91 / Avoirdupois
93 lb                      .45359237 kg
94 lbf                     lb g
95 ounce                   1|16 lb
96 oz                      ounce
97 dram                    1|16 oz
98 dr                      dram
99 grain                   1|7000 lb
100 gr                      grain
101 shortton                2000 lb
102 ton                     shortton
103 longton                 2240 lb
105 / Apothecary
107 scruple                 20 grain
108 apdram                  60 grain
109 apounce                 480 grain
110 appound                 5760 grain
112 / Length
114 meter                   m
115 metre                   m
116 cm                      centimeter
117 mm                      millimeter
118 km                      kilometer
119 nm                      nanometer
120 micron                  micrometer
121 angstrom                decinanometer
123 inch                    2.54 cm
124 in                      inch
125 foot                    12 in
126 feet                    foot
127 ft                      foot
128 yard                    3 ft
129 yd                      yard
130 rod                     5.5 yd
131 rd                      rod
132 mile                    5280 ft
133 mi                      mile
135 british                 1200|3937 m/ft
136 nmile                   1852m
138 acre                    4840 yd2
140 cc                      cm3
141 liter                   kilocc
142 litre                   liter
143 ml                      milliliter
145 / US Liquid
147 gallon                  231 in3
148 imperial                1.20095
149 gal                     gallon
150 quart                   1|4 gal
151 qt                      quart
152 pint                    1|2 qt
153 pt                      pint
155 floz                    1|16 pt
156 fldr                    1|8 floz
158 / US Dry
160 dry                     268.8025 in3/gallon
161 peck                    8 dry-quart
162 pk                      peck
163 bushel                  4 peck
164 bu                      bushel
166 / British
168 brgallon                4.54609 litre
169 brquart                 1|4 brgallon
170 brpint                  1|2 brquart
171 brgill                  1|4 brpint
172 brfloz                  1|20 brpint
173 brpeck                  9.09218 litre
174 brbushel                4 brpeck
176 / Energy Work
178 newton                  kg-m/sec2
179 nt                      newton
180 joule                   nt-m
181 / There are 5 different small calories.  The one used here is the "IT
182 / calorie".  The "USA calorie" or "thermochemical calorie" is 4.184 joule
183 / (exact).  The "calorie at 15 deg C" is 4.1855 joule fuzz.  The "calorie
184 / at 20 deg C" is 4.1819 joule fuzz.  The "mean calorie" is 4.19002 joule
185 / fuzz.  The large Calorie is a thousand of (one of) these calories.
186 cal                     4.1868 joule
188 / Electrical
190 coulomb                 coul
191 ampere                  coul/sec
192 amp                     ampere
193 watt                    joule/sec
194 volt                    watt/amp
195 ohm                     volt/amp
196 mho                     /ohm
197 farad                   coul/volt
198 henry                   sec2/farad
199 weber                   volt-sec
201 / Light & Radiation
203 cd                      candela
204 lumen                   cd sr
205 lux                     cd sr/m2
206 / actual radiation dose
207 gray                    joule/kg
208 / effective radiation dose
209 sievert                 joule/kg
211 / Temperature
213 kelvin                  degC
214 rankine                 5|9 kelvin
215 degF                    rankine
216 / note that degF and degC are suitable for converting temperature intervals,
217 / but not actual temperatures on the Fahrenheit and Celsius scales.
219 / Money
220 / epoch May 22, 1998
221 / floating rates from Los Angeles Times
222 / fixed rates from http://dylee.keel.econ.ship.edu/intntl/intfin/currencies.htm
223 / Currencies pegged by the country to another currency are shown exactly
224 / (of course, they are still subject to change).  Others are shown as "fuzz".
226 $                       dollar
227 argentinapeso           1.0000 $
228 australiadollar         0.6297 $   fuzz
229 brazilreal              0.8705 $   fuzz
230 britainpound            1.6327 $   fuzz
231 canadadollar            0.9899 $   fuzz
232 chilepeso               0.002204 $ fuzz
233 chinayuanrenminbi       0.1208 $   fuzz
234 colombiapeso            0.000719 $ fuzz
235 czechkoruna             0.0308 $   fuzz
236 denmarkkrone            1.491 $    fuzz
237 dominicanrepublicpeso   0.0664 $   fuzz
238 equadorsucre            0.000196 $ fuzz
239 egyptpound              0.2927 $   fuzz
240 hongkongdollar          1|7.73 $
241 hungaryforint           1|211.02 $ fuzz
242 indiarupee              0.0247 $   fuzz
243 indonesiarupiah         1|11050 $  fuzz
244 iranrial                0.000333 $ fuzz
245 iraqdinar               1|.3109 $
246 israelnewshekel         0.2743 $   fuzz
247 israelshekel            .001 israelnewshekel
248 israelpound             .1 israelshekel
249 japanyen                0.007419 $ fuzz
250 jordandinar             1.4134 $   fuzz
251 lebanonpound            1|1519.5 $ fuzz
252 malaysiaringgit         0.2654 $   fuzz
253 malaysiadollar          malaysiaringgit
254 mexicopeso              0.115781 $ fuzz
255 newzealanddollar        0.5338 $   fuzz
256 norwaykrone             0.1342 $   fuzz
257 pakistanrupee           0.0229 $   fuzz
258 perusol                 0.3532 $   fuzz
259 perunewsol              perusol
260 philippinespeso         0.0258 $   fuzz
261 polandnewzloty          0.2882 $   fuzz
262 russiaruble             0.1624 $   fuzz
263 saudiarabiariyal        0.2667 $   fuzz
264 singaporedollar         0.6109 $   fuzz
265 slovakiakoruna          0.0293 $   fuzz
266 southafricarand         0.1968 $   fuzz
267 southkoreawon           0.00072 $  fuzz
268 swedenkrona             0.1302 $   fuzz
269 switzerlandfranc        0.6841 $   fuzz
270 taiwannewdollar         0.0298 $   fuzz
271 thailandbaht            0.02541 $  fuzz
272 turkeylira              1|253780 $ fuzz
273 uaedirham               0.2724 $   fuzz
274 uruguaypeso             0.0966 $   fuzz
275 venezuelabolivar        1|535.5 $  fuzz
277 / The euro and currencies tied to it.
278 / See http://www.x-rates.com/faq_euro.html
279 / or http://europa.eu.int/euro/html/entry.html
280 / euro to $ as of 16 Jan 2002.
281 euro                    0.8834 $ fuzz
282 austriaschilling        1|13.7603 euro
283 belgiumfranc            1|40.3399 euro
284 finlandmarkka           1|5.94573 euro
285 francefranc             1|6.55957 euro
286 germanymark             1|1.95583 euro
287 greecedrachma           1|340.750 euro
288 irelandpound            1|.787564 euro
289 italylira               1|1936.27 euro
290 luxembourgfranc         1|40.3399 euro
291 netherlandsguilder      1|2.20371 euro
292 portugalescudo          1|200.482 euro
293 spainpeseta             1|166.386 euro
295 mark                    germanymark
296 bolivar                 venezuelabolivar
297 peseta                  spainpeseta
298 rand                    southafricarand
299 escudo                  portugalescudo
300 sol                     perusol
301 guilder                 netherlandsguilder
302 peso                    mexicopeso
303 yen                     japanyen
304 lira                    italylira
305 dinar                   iraqdinar
306 rial                    iranrial
307 rupee                   indiarupee
308 drachma                 greecedrachma
309 franc                   francefranc
310 markka                  finlandmarkka
311 sucre                   equadorsucre
312 pound                   britainpound
313 poundsterling           britainpound
314 / cruzeiro              brazilcruzeiro
316 / PDP-11
318 baud                    bit/sec
319 byte                    8 bit
320 word                    2 byte
321 block                   512 byte
322 K                       1024 word
323 tc                      578 block
324 rktrack                 12 block
325 rkcylinder              2 rktrack
326 rk                      203 rkcylinder
327 rptrack                 10 block
328 rpcylinder              20 rptracks
329 rp                      406 rpcylinder
330 rftrack                 8 block
331 rfshoe                  8 rftrack
332 rfdisk                  16 rfshoe
333 rf                      2 rfdisk
335 / Trivia
337 %                       1|100
338 admiraltyknot           6080 ft/hr
339 apostilb                cd/pi-m2
340 are                     1+2 m2
341 arpentcan               27.52 mi
342 arpentlin               191.835 ft
343 astronomicalunit        au
344 atmosphere              1.01325+5 nt/m2
345 atm                     atmosphere
346 atomicmassunit          gm/mole
347 amu                     atomicmassunit
348 bag                     94 lb
349 bakersdozen             13
350 bar                     1+5 nt/m2
351 barie                   1-1 nt/m2
352 barleycorn              1|3 in
353 barn                    1-28 m2
354 barrel                  42 gal
355 barye                   1-1 nt/m2
356 / radiation activity
357 becquerel               /sec
358 bev                     1+9 e-volt
359 biot                    10 amp
360 blondel                 cd/pi-m2
361 boardfoot               144 in3
362 bolt                    40 yd
363 boltzmann               1.38066-23 joule/degC fuzz
364 k                       boltzmann
365 bottommeasure           1|40 in
366 britishthermalunit      cal lb-degF/gm-degC
367 btu                     britishthermalunit
368 refrigeration           12000 btu/ton-hour
369 buck                    dollar
370 cable                   720 ft
371 caliber                 1-2 in
372 calorie                 cal
373 carat                   205 mg
374 cent                    centidollar
375 cental                  100 lb
376 centesimalminute        1-2 grade
377 centesimalsecond        1-4 grade
378 century                 100 year
379 cfs                     ft3/sec
380 chain                   66 ft
381 circularinch            1|4 pi-in2
382 circularmil             1-6|4 pi-in2
383 clusec                  1-8 mm-hg m3/s
384 coomb                   4 bu
385 cord                    128 ft3
386 cordfoot                cord
387 crith                   9.06-2 gm
388 cubit                   18 in
389 cup                     1|2 pt
390 curie                   3.7+10 /sec
391 dalton                  amu
392 decade                  10 yr
393 dioptre                 /m
394 displacementton         35 ft3
395 doppelzentner           100 kg
396 dozen                   12
397 drop                    .03 cm3
398 dyne                    cm-gm/sec2
399 electronvolt            e-volt
400 ell                     45 in
401 engineerschain          100 ft
402 engineerslink           100|100 ft
403 equivalentfootcandle    lumen/pi-ft2
404 equivalentlux   lumen/pi-m2
405 equivalentphot          cd/pi-cm2
406 erg                     cm2-gm/sec2
407 ev                      e-volt
408 faraday                 9.652+4 coul
409 fathom                  6 ft
410 fermi                   1-15 m
411 fifth                   4|5 qt
412 fin                     5 dollar
413 finger                  7|8 in
414 firkin                  9 gal
415 footcandle              lumen/ft2
416 footlambert             cd/pi-ft2
417 fortnight               14 da
418 franklin                3.33564-10 coul
419 frigorie                kilocal
420 furlong                 220 yd
421 / Universal Gravitational Constant
422 G                       6.673-11 m3/kg-sec2 fuzz
423 galileo                 1-2 m/sec2
424 gamma                   1-9 weber/m2
425 gauss                   1-4 weber/m2
426 geodeticfoot            british-ft
427 geographicalmile        1852 m
428 gilbert                 7.95775-1 amp
429 gill                    1|4 pt
430 gross                   144
431 gunterschain            22 yd
432 hand                    4 in
433 / Planck's constant
434 hbar                    1.054573-34 joule-sec fuzz
435 h                       2 pi hbar
436 hectare                 1+4 m2
437 hefnercandle            .92 cd
438 hertz                   /sec
439 hogshead                2 barrel
440 hd                      hogshead
441 homestead               1|4 mi2
442 horsepower              550 ft-lb-g/sec
443 hp                      horsepower
444 hyl                     gm force sec2/m
445 hz                      /sec
446 imaginarycubicfoot      1.4 ft3
447 / radio intensity
448 jansky                  1-26 watt/m2-hz
449 jeroboam                4|5 gal
450 karat                   1|24
451 kcal                    kilocal
452 kcalorie                kilocal
453 kev                     1+3 e-volt
454 key                     kg
455 khz                     1+3 /sec
456 kilderkin               18 gal
457 knot                    nmile/hr
458 lambert                 cd/pi-cm2
459 langley                 cal/cm2
460 last                    80 bu
461 league                  3 mi
462 lightyear               c-yr
463 line                    1|12 in
464 link                    66|100 ft
465 longhundredweight       112 lb
466 longquarter             28 lb
467 lusec                   1-6 mm-hg m3/s
468 mach                    331.46 m/sec
469 magnum                  2 qt
470 marineleague            3 nmile
471 maxwell                 1-8 weber
472 metriccarat             200 mg
473 mev                     1+6 e-volt
474 mgd                     megagal/day
475 mh                      millihenry
476 mhz                     1+6 /sec
477 mil                     1-3 in
478 millenium               1000 year
479 minersinch              1.5 ft3/min
480 minim                   1|60 fldr
481 mo                      month
482 mpg                     mile/gal
483 mph                     mile/hr
484 nail                    1|16 yd
485 nauticalmile            nmile
486 nit                     cd/m2
487 noggin                  1|8 qt
488 nox                     1-3 lux
489 ns                      nanosec
490 oersted                 2.5+2 pi-amp/m
491 oe                      oersted
492 pace                    36 in
493 palm                    3 in
494 parasang                3.5 mi
495 parsec                  au-radian/arcsec
496 pascal                  nt/m2
497 pc                      parsec
498 pennyweight             1|20 oz
499 percent                 %
500 perch                   rd
501 pf                      picofarad
502 phot                    lumen/cm2
503 pica                    1|6 in
504 pieze                   1+3 nt/m2
505 pipe                    4 barrel
506 point                   1|72 in
507 poise                   gm/cm-sec
508 pole                    rd
509 poundal                 ft-lb/sec2
510 pdl                     poundal
511 proof                   1|200
512 psi                     lb-g/in2
513 quarter                 9 in
514 quartersection          1|4 mi2
515 quintal                 100 kg
516 quire                   25
517 / actual radiation dose
518 rad                     1-2 gray
519 ream                    500
520 registerton             100 ft3
521 rehoboam                156 floz
522 / effective radiation dose
523 rem                     1-2 sievert
524 rhe                     10 m2/nt-sec
525 / ionization power of radiation
526 rontgen                 2.58-4 coul/kg
527 roentgen                rontgen
528 rood                    1.21+3 yd2
529 rope                    20 ft
530 rutherford              1+6 /sec
531 / This is the rydberg energy (ionization energy of hydrogen assuming infinite
532 / mass nucleus).  To get the "rydberg constant", use rydberg/h-c
533 rydberg                 13.605698 ev fuzz
534 sabin                   1 ft2
535 sack                    3 bu
536 seam                    8 bu
537 section                 mi2
538 shippington             40 ft3
539 shorthundredweight      100 lb
540 shortquarter            25 lb
541 siemens                 /ohm
542 sigma                   microsec
543 skein                   120 yd
544 skot                    1-3 apostilb
545 slug                    lb-g-sec2/ft
546 span                    9 in
547 spat                    4 pi sr
548 spindle                 14400 yd
549 square                  100 ft2
550 stere                   m3
551 sthene                  1+3 nt
552 stilb                   cd/cm2
553 stoke                   1-4 m2/sec
554 stone                   14 lb
555 strike                  2 bu
556 surveyfoot              british-ft
557 surveyorschain          66 ft
558 surveyorslink           66|100 ft
559 tablespoon              4 fldr
560 teaspoon                4|3 fldr
561 tesla                   weber/m2
562 therm                   1+5 btu
563 thermie                 1+6 cal
564 timberfoot              ft3
565 tnt                     4.6+6 m2/sec2
566 tonne                   1+6 gm
567 torr                    mm hg
568 township                36 mi2
569 tun                     8 barrel
570 water                   .22491|2.54 kg/m2-sec2
571 wey                     40 bu
572 weymass                 252 lb
573 Xunit                   1.00202-13m