units.1 (68854) | units.1 (70197) |
---|---|
1.\" $FreeBSD: head/usr.bin/units/units.1 68854 2000-11-17 11:44:16Z ru $ | 1.\" $FreeBSD: head/usr.bin/units/units.1 70197 2000-12-19 16:00:12Z ru $ |
2.Dd July 14, 1993 3.Dt UNITS 1 4.Os 5.Sh NAME 6.Nm units 7.Nd conversion program 8.Sh SYNOPSIS 9.Nm --- 9 unchanged lines hidden (view full) --- 19Suppress prompting of the user for units and the display of statistics 20about the number of units loaded. 21.It Fl v 22Print the version number. 23.It Ar from-unit to-unit 24Allow a single unit conversion to be done directly from the command 25line. The program will not print prompts. It will print out the 26result of the single specified conversion. | 2.Dd July 14, 1993 3.Dt UNITS 1 4.Os 5.Sh NAME 6.Nm units 7.Nd conversion program 8.Sh SYNOPSIS 9.Nm --- 9 unchanged lines hidden (view full) --- 19Suppress prompting of the user for units and the display of statistics 20about the number of units loaded. 21.It Fl v 22Print the version number. 23.It Ar from-unit to-unit 24Allow a single unit conversion to be done directly from the command 25line. The program will not print prompts. It will print out the 26result of the single specified conversion. |
27.El |
|
27.Sh DESCRIPTION 28The 29.Nm 30program converts quantities expressed in various scales to 31their equivalents in other scales. The 32.Nm 33program can only 34handle multiplicative scale changes. It cannot convert Centigrade --- 41 unchanged lines hidden (view full) --- 76 2.1166667e-05 kg^2 m / sec 77.Ed 78.Pp 79The conversion information is read from a units data file. The default 80file includes definitions for most familiar units, abbreviations and 81metric prefixes. Some constants of nature included are: 82.Pp 83.Bl -inset -offset indent -compact | 28.Sh DESCRIPTION 29The 30.Nm 31program converts quantities expressed in various scales to 32their equivalents in other scales. The 33.Nm 34program can only 35handle multiplicative scale changes. It cannot convert Centigrade --- 41 unchanged lines hidden (view full) --- 77 2.1166667e-05 kg^2 m / sec 78.Ed 79.Pp 80The conversion information is read from a units data file. The default 81file includes definitions for most familiar units, abbreviations and 82metric prefixes. Some constants of nature included are: 83.Pp 84.Bl -inset -offset indent -compact |
84.It pi ratio of circumference to diameter 85.It c speed of light 86.It e charge on an electron 87.It g acceleration of gravity 88.It force same as g 89.It mole Avogadro's number 90.It water pressure per unit height of water 91.It mercury pressure per unit height of mercury 92.It au astronomical unit | 85.It "pi ratio of circumference to diameter 86.It "c speed of light 87.It "e charge on an electron 88.It "g acceleration of gravity 89.It "force same as g 90.It "mole Avogadro's number 91.It "water pressure per unit height of water 92.It "mercury pressure per unit height of mercury 93.It "au astronomical unit |
93.El 94.Pp 95The unit 'pound' is a unit of mass. Compound names are run together 96so 'poundforce' is a unit of force. The unit 'ounce' is also a unit 97of mass. The fluid ounce is 'floz'. British units that differ from 98their US counterparts are prefixed with 'br', and currency is prefixed 99with its country name: 'belgiumfranc', 'britainpound'. When searching 100for a unit, if the specified string does not appear exactly as a unit --- 19 unchanged lines hidden (view full) --- 120even after removing trailing 's' or 'es', then it will be checked 121against the list of prefixes. Prefixes will be removed until a legal 122base unit is identified. 123.Pp 124Here is an example of a short units file that defines some basic 125units. 126.Pp 127.Bl -inset -offset indent -compact | 94.El 95.Pp 96The unit 'pound' is a unit of mass. Compound names are run together 97so 'poundforce' is a unit of force. The unit 'ounce' is also a unit 98of mass. The fluid ounce is 'floz'. British units that differ from 99their US counterparts are prefixed with 'br', and currency is prefixed 100with its country name: 'belgiumfranc', 'britainpound'. When searching 101for a unit, if the specified string does not appear exactly as a unit --- 19 unchanged lines hidden (view full) --- 121even after removing trailing 's' or 'es', then it will be checked 122against the list of prefixes. Prefixes will be removed until a legal 123base unit is identified. 124.Pp 125Here is an example of a short units file that defines some basic 126units. 127.Pp 128.Bl -inset -offset indent -compact |
128.It m !a! 129.It sec !b! 130.It micro- 1e-6 131.It minute 60 sec 132.It hour 60 min 133.It inch 0.0254 m 134.It ft 12 inches 135.It mile 5280 ft | 129.It "m !a! 130.It "sec !b! 131.It "micro- 1e-6 132.It "minute 60 sec 133.It "hour 60 min 134.It "inch 0.0254 m 135.It "ft 12 inches 136.It "mile 5280 ft |
136.El 137.Sh BUGS 138The effect of including a '/' in a prefix is surprising. 139.Pp 140Exponents entered by the user can be only one digit. 141You can work around this by multiplying several terms. 142.Pp 143The user must use | to indicate division of numbers and / to --- 16 unchanged lines hidden --- | 137.El 138.Sh BUGS 139The effect of including a '/' in a prefix is surprising. 140.Pp 141Exponents entered by the user can be only one digit. 142You can work around this by multiplying several terms. 143.Pp 144The user must use | to indicate division of numbers and / to --- 16 unchanged lines hidden --- |