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