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