Charles.Forsyth20060303-partialeea662d19 years agoHistory
110 lines · 2.1 KB · Text
RawDownload
.TH UNITS 1.if n .ds / /.SH NAMEunits \- conversion program.SH SYNOPSIS.B units[.B -v][.I file].SH DESCRIPTION.I Unitsconverts quantities expressedin various standard scales totheir equivalents in other scales.It works interactively in this fashion:.IP.EXyou have: inchyou want: cm    * 2.54	/ 0.3937008.EE.PPA quantity is specified as a multiplicative combinationof units and floating point numbers.Operators have the following precedence:.IP.EX.ta \w'\fLXXXXXXXXXXXXXXX'u\fL+\fP \fL-\fP	\f1add and subtract\fL*\fP \fL/\fP \fL×\fP \fL÷\fP	\f1multiply and dividecatenation	multiply\fL²\fP \fL³\fP \fL^\fP	\f1exponentiation\fL|\fP	\f1divide\fL(\fP ... \fL)\fP	\f1grouping.EE.PPMost familiar units,abbreviations, and metric prefixes are recognized,together with a generous leavening of exoticaand a few constants of nature including:.IP.de fq\fL\\$1\\fP	\\$2 \\$3 \\$4 \\$5 \\$6...ta \w'\fLwaterXXX'u.nf.fq pi,\f1π\fP ratio of circumference to diameter.fq c speed of light.fq e charge on an electron.fq g acceleration of gravity.fq force same as \fLg\fP.fq mole Avogadro's number.fq water "pressure head per unit height of water".fq au astronomical unit.fi.PPThe.L poundis a unit ofmass.Compound names are run together, e.g..LR lightyear .British units that differ from their US counterpartsare prefixed thus:.LR brgallon .Currency is denoted.LR belgiumfranc ,.LR britainpound ,etc..PPThe complete list of units can be found in.BR /lib/units .A.I fileargument to.I unitsspecifies a file to be used instead of.BR /lib/units.The.B -vflag causes.I unitsto print its entire database..SH EXAMPLE.EXyou have: 15 pounds force/in²you want: atm	* 1.020689	/ 0.9797299.EE.SH FILES.B /lib/units.SH SOURCE.B /appl/cmd/units.y.br.B /appl/cmd/units.b.SH BUGSSince.I unitsdoes only multiplicative scale changes,it can convert Kelvin to Rankine but not Centigrade toFahrenheit, except that the latter is handled as a special case..brCurrency conversions are only as accurate as the last time someoneupdated.BR /lib/units .