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