Lines Matching +full:end +full:- +full:of +full:- +full:conversion
6 .Nd conversion calculator
25 or non-interactively, providing a conversion for given arguments
31 .Bl -tag -width "from to"
32 .It Fl e , Fl -exponential
36 (see the description of the
39 .It Fl f Ar unitsfile , Fl -file Ar unitsfile
40 Specify the name of the units data file to load.
42 .It Fl H Ar historyfile , Fl -history Ar historyfile
44 .It Fl h , Fl -help
45 Show an overview of options.
46 .It Fl o Ar format , Fl -output-format Ar format
50 .It Fl q , Fl -quiet
51 Suppress prompting of the user for units and the display of statistics
52 about the number of units loaded.
53 .It Fl t , Fl -terse
58 .It Fl U , Fl -unitsfile
59 Print the location of the default unit file if it exists.
62 .It Fl V , Fl -version
66 .It Fl v , Fl -verbose
67 Print the units in the conversion output.
70 Allow a single unit conversion to be done directly from the command
73 It will print out the result of the single specified conversion.
86 .Bl -dash -compact
88 Powers of units can be specified using the
98 for details on the limitations of exponent values.
100 Multiplication of units can be specified by using spaces
103 .Pq Dq -
107 Division of units is indicated by the slash
110 Division of numbers
123 The conversion information is read from a units data file.
127 Some constants of nature included are:
129 .Bl -column -offset indent -compact "mercury"
130 .It "pi ratio of circumference to diameter"
131 .It "c speed of light"
133 .It "g acceleration of gravity"
136 .It "water pressure per unit height of water"
137 .It "mercury pressure per unit height of mercury"
143 is a unit of mass.
147 is a unit of force.
150 is also a unit of mass.
174 new units in terms of old ones so that a reduction leads to the
187 character at the beginning of a line.
191 .Pq Dq -
192 at the end of the prefix name.
198 then it will be checked against the list of prefixes.
202 .Bl -tag -width PATH
204 The colon-separated list of root directories at which
226 .Bl -tag -width /usr/share/misc/definitions.units -compact
231 .Ex -std
233 .Bl -tag -width 0n
234 .It Sy Example 1 : No Simple conversion of units
238 .Bd -literal -offset 2n
239 .Li $ Ic units -o %0.f -t '4 gigabytes' bytes
245 part of the command is required to print the result in a non-scientific
246 notation (e.g, 4294967296 instead of 4.29497e+09).
249 Here is an example of an interactive session where the user is prompted for
251 .Bd -literal -offset 2n
279 .Bd -literal -offset 2n
293 .Bd -literal -offset 2n
309 Here is an example of a short units file that defines some basic
312 .Bl -column -offset 2n -compact "minute"
315 .It "micro- 1e-6"
322 .It Sy Example 5 : No Viewing units and conversions of the default units file
323 The following shell one-liner allows the user to view the contents of the
325 .Bd -literal -offset 2n
326 .Li $ Ic less \&"$(units -U)"
330 .Bl -diag
343 Instead of a conversion,
346 .Bd -literal -offset 2n
350 2.7777778e-11 kg m^2 / sec^3
351 2.1166667e-05 kg^2 m / sec
364 The requested conversion involves too many units
366 .It redefinition of prefix '%s' on line %d ignored
368 .It redefinition of unit '%s' on line %d ignored
370 .It unexpected end of prefix on line %d
372 .It unexpected end of unit on line %d
380 One of the user-specified units files cannot be opened.
385 .It WARNING: conversion of non-proportional quantities.
392 The warning is printed when a quantity is a part of the
395 It can be illustrated on an example of conversion from Fahrenheit to Celsius:
396 .Bd -literal -offset 2n
398 (-> x*0.55555556g -17.777778g)
399 (<- y*1.8g 32g)
401 WARNING: conversion of non-proportional quantities.
402 (-> x*0.55555556g -17.777778g)
403 (<- y*1.8g 32g)
405 WARNING: conversion of non-proportional quantities.
406 -17.222222
426 The effect of including a
435 to indicate division of numbers and
437 to indicate division of symbols.
442 of the units converted and on the length of the data file.
453 does not handle reductions of long lists of units very well:
454 .Bd -literal -offset 2n
455 .Li $ Ic units \&"$(yes m | head -n 154)" \&"$(yes cm | head -n 154)"
457 / 1e-308
458 .Li $ Ic units \&"$(yes m | head -n 333)" \&"$(yes cm | head -n 333)"
461 .Li $ Ic units \&"$(yes m | head -n 500)" \&"$(yes cm | head -n 500)"
466 .Li $ Ic units \&"$(yes m | head -n 501)" \&"$(yes cm | head -n 501)"