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