Manual Page Result
0
Command: units | Section: 7 | Source: UNIX v10 | File: units.7
UNITS(7) Miscellaneous Information Manual UNITS(7)
NAME
units - conversion program
SYNOPSIS
units
DESCRIPTION
Units converts quantities expressed in various standard scales to their
equivalents in other scales. It works interactively in this fashion:
You have: inch
You want: cm
* 2.54
/ 0.393701
Quantities are specified using the following grammar:
Unit: Empty | Unit Term | Unit / Term
Term: Number | Name | ( Unit ) |
square Term | sq Term | cube Term | cu Term |
Term ^ Number
Numbers are specified in the form expected by atof(3). Names are maxi-
mal strings of non-numeric, non-punctuation characters. Powers are in-
dicated by the operator or by the words and Parentheses alter grouping.
The empty unit has value 1. Terms are multiplied together unless con-
nected by for inversion, e.g.
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
c speed of light
e charge on an electron
g acceleration of gravity
force same as g
mole Avogadro's number
water pressure head per unit height of water
au astronomical unit
The is a unit of mass. Compound names are run together, e.g. British
units that differ from their US counterparts are prefixed thus: Cur-
rency is denoted etc.
A response of to `You want:' displays all known units conformable with
the `You have:' quantity.
The complete list of units can be found in and
FILES
BUGS
Since units does only multiplicative scale changes, it can convert
Kelvin to Rankine, but not Centigrade to Fahrenheit.
Currency conversions are only as accurate as the most recent report of
foreign exchange prices from the AP wire.
UNITS(7)