1units(1) User Commands units(1)
2
3
4
6 units - converts quantities expressed in standard scales to other
7 scales
8
10 units
11
12
14 units converts quantities expressed in various standard scales to their
15 equivalents in other scales. It works interactively in this fashion:
16
17 You have:~~inch
18 You want:~~cm
19 * 2.540000e+00
20 / 3.937008e−01
21
22
23
24
25 A quantity is specified as a multiplicative combination of units
26 optionally preceded by a numeric multiplier. Powers are indicated by
27 suffixed positive integers, division by the usual sign:
28
29 You have:~~15 lbs force/in2
30 You want:~~atm
31 * 1.020689e+00
32 / 9.797299e−01
33
34
35
36
37 units only does multiplicative scale changes; thus it can convert
38 Kelvin to Rankine, but not Celsius to Fahrenheit. Most familiar units,
39 abbreviations, and metric prefixes are recognized, together with a gen‐
40 erous leavening of exotica and a few constants of nature including:
41
42 pi ratio of circumference to diameter,
43
44
45 c speed of light,
46
47
48 e charge on an electron,
49
50
51 g acceleration of gravity,
52
53
54 force same as g,
55
56
57 mole Avogadro's number,
58
59
60 water pressure head per unit height of water,
61
62
63 au astronomical unit.
64
65
66
67 Pound is not recognized as a unit of mass; lb is. Compound names are
68 run together, (for example, lightyear). British units that differ from
69 their U.S. counterparts are prefixed thus: brgallon. For a complete
70 list of units, type:
71
72
73 cat /usr/share/lib/unittab
74
76 /usr/share/lib/unittab
77
79 See attributes(5) for descriptions of the following attributes:
80
81
82
83
84 ┌─────────────────────────────┬─────────────────────────────┐
85 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
86 ├─────────────────────────────┼─────────────────────────────┤
87 │Availability │SUNWesu │
88 └─────────────────────────────┴─────────────────────────────┘
89
91 attributes(5)
92
93
94
95SunOS 5.11 14 Sep 1992 units(1)