UNITS(1) UNIX Programmer's Manual UNITS(1)
units - conversion program
S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
_
\bU_
\bn_
\bi_
\bt_
\bs converts quantities expressed in various standard
scales to their equivalents in other scales. It works
interactively in this fashion:
_
\bY_
\bo_
\bu _
\bh_
\ba_
\bv_
\be: inch
_
\bY_
\bo_
\bu _
\bw_
\ba_
\bn_
\bt: cm
* _
\b2._
\b5_
\b4_
\b0_
\b0_
\b0_
\be+_
\b0_
\b0
/ _
\b3._
\b9_
\b3_
\b7_
\b0_
\b1_
\be-_
\b0_
\b1
A quantity is specified as a multiplicative combination of
units optionally preceded by a numeric multiplier. Powers
are indicated by suffixed positive integers, division by the
_
\bY_
\bo_
\bu _
\bh_
\ba_
\bv_
\be: 15 pounds force/in2
_
\bY_
\bo_
\bu _
\bw_
\ba_
\bn_
\bt: atm
* _
\b1._
\b0_
\b2_
\b0_
\b6_
\b9_
\be+_
\b0_
\b0
/ _
\b9._
\b7_
\b9_
\b7_
\b3_
\b0_
\be-_
\b0_
\b1
_
\bU_
\bn_
\bi_
\bt_
\bs only does multiplicative scale changes. Thus it can
convert Kelvin to Rankine, but not Centigrade to Fahrenheit.
Most familiar units, abbreviations, and metric prefixes are
recognized, together with a generous leavening of exotica
and a few constants of nature including:
pi ratio of circumference to diameter
g acceleration of gravity
water pressure head per unit height of water
`Pound' is a unit of mass. Compound names are run together,
e.g. `lightyear'. British units that differ from their US
counterparts are prefixed thus: `brgallon'. Currency is
denoted `belgiumfranc', `britainpound', ...
For a complete list of units, `cat /usr/lib/units'.
Printed 7/9/88 April 29, 1985 1
UNITS(1) UNIX Programmer's Manual UNITS(1)
Don't base your financial plans on the currency conversions.
Printed 7/9/88 April 29, 1985 2