4 units \- conversion program
15 converts quantities expressed
16 in various standard scales to
17 their equivalents in other scales.
18 It works interactively in this fashion:
27 A quantity is specified as a multiplicative combination
28 of units and floating point numbers.
29 Operators have the following precedence:
32 .ta \w'\fLXXXXXXXXXXXXXXX'u
33 \fL+\fP \fL-\fP \f1add and subtract
34 \fL*\fP \fL/\fP \fL×\fP \fL÷\fP \f1multiply and divide
36 \fL²\fP \fL³\fP \fL^\fP \f1exponentiation
38 \fL(\fP ... \fL)\fP \f1grouping
42 abbreviations, and metric prefixes are recognized,
43 together with a generous leavening of exotica
44 and a few constants of nature including:
47 \fL\\$1\\fP \\$2 \\$3 \\$4 \\$5 \\$6
51 .fq pi,\f1π\fP ratio of circumference to diameter
53 .fq e charge on an electron
54 .fq g acceleration of gravity
55 .fq force same as \fLg\fP
56 .fq mole Avogadro's number
57 .fq water "pressure head per unit height of water"
58 .fq au astronomical unit
65 Compound names are run together, e.g.
67 British units that differ from their US counterparts
75 The complete list of units can be found in
81 specifies a file to be used instead of
87 to print its entire database.
90 you have: 15 pounds force/in²
98 .B \*9/src/cmd/units.y
102 does only multiplicative scale changes,
103 it can convert Kelvin to Rankine but not Centigrade to
106 Currency conversions are only as accurate as the last time someone
107 updated the database.