macros for different classes of network
[unix-history] / .ref-BSD-3 / usr / man / man1 / units.1
CommitLineData
e6817382
BJ
1.if n .ds / /
2.if t .ds / \z/\h'\w'*'u'
3.TH UNITS 1
4.SH NAME
5units \- conversion program
6.SH SYNOPSIS
7.B units
8.SH DESCRIPTION
9.I Units
10converts quantities expressed
11in various standard scales to
12their equivalents in other scales.
13It works interactively in this fashion:
14.PP
15.I " You have:"
16inch
17.br
18.I " You want:"
19cm
20.br
21.I " * 2.54000e+00
22.br
23.I " \*/ 3.93701e\-01
24.PP
25A quantity is specified as a multiplicative combination of
26units optionally preceded by a numeric multiplier.
27Powers are indicated by suffixed positive integers,
28division by the usual sign:
29.PP
30.I " You have:"
3115 pounds force/in2
32.br
33.I " You want:"
34atm
35.br
36.I " * 1.02069e+00"
37.br
38.I " \*/ 9.79730e\-01"
39.PP
40.I Units
41only does multiplicative scale changes.
42Thus it can convert Kelvin to Rankine, but not Centigrade to
43Fahrenheit.
44Most familiar units,
45abbreviations, and metric prefixes are recognized,
46together with a generous leavening of exotica
47and 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
61mass.
62Compound names are run together, e.g. `lightyear'.
63British units that differ from their US counterparts
64are prefixed thus: `brgallon'.
65Currency is denoted `belgiumfranc', `britainpound', ...
66.PP
67For a complete list of units, `cat /usr/lib/units'.
68.SH FILES
69/usr/lib/units
70.SH BUGS
71Don't base your
72financial plans on the currency conversions.