Commit | Line | Data |
---|---|---|
e16dc90a C |
1 | .if n .ds / / |
2 | .if t .ds / \z/\h'\w'*'u' | |
3 | .TH UNITS 1 "18 January 1983" | |
4 | .SH NAME | |
5 | units \- conversion program | |
6 | .SH SYNOPSIS | |
7 | .B units | |
8 | .SH DESCRIPTION | |
9 | .I Units | |
10 | converts quantities expressed | |
11 | in various standard scales to | |
12 | their equivalents in other scales. | |
13 | It works interactively in this fashion: | |
14 | .PP | |
15 | .I " You have:" | |
16 | inch | |
17 | .br | |
18 | .I " You want:" | |
19 | cm | |
20 | .br | |
21 | .I " * 2.54000e+00 | |
22 | .br | |
23 | .I " \*/ 3.93701e\-01 | |
24 | .PP | |
25 | A quantity is specified as a multiplicative combination of | |
26 | units optionally preceded by a numeric multiplier. | |
27 | Powers are indicated by suffixed positive integers, | |
28 | division by the usual sign: | |
29 | .PP | |
30 | .I " You have:" | |
31 | 15 pounds force/in2 | |
32 | .br | |
33 | .I " You want:" | |
34 | atm | |
35 | .br | |
36 | .I " * 1.02069e+00" | |
37 | .br | |
38 | .I " \*/ 9.79730e\-01" | |
39 | .PP | |
40 | .I Units | |
41 | only does multiplicative scale changes. | |
42 | Thus it can convert Kelvin to Rankine, but not Centigrade to | |
43 | Fahrenheit. | |
44 | Most familiar units, | |
45 | abbreviations, and metric prefixes are recognized, | |
46 | together with a generous leavening of exotica | |
47 | and a few constants of nature including: | |
48 | .PP | |
49 | .nf | |
50 | pi ratio of circumference to diameter | |
51 | c speed of light | |
52 | e charge on an electron | |
53 | g acceleration of gravity | |
54 | force same as g | |
55 | mole Avogadro's number | |
56 | water pressure head per unit height of water | |
57 | au astronomical unit | |
58 | .PP | |
59 | .fi | |
60 | `Pound' is a unit of | |
61 | mass. | |
62 | Compound names are run together, e.g. `lightyear'. | |
63 | British units that differ from their US counterparts | |
64 | are prefixed thus: `brgallon'. | |
65 | Currency is denoted `belgiumfranc', `britainpound', ... | |
66 | .PP | |
67 | For a complete list of units, `cat /usr/lib/units'. | |
68 | .SH FILES | |
69 | /usr/lib/units | |
70 | .SH BUGS | |
71 | Don't base your | |
72 | financial plans on the currency conversions. |