[BACK]Return to units.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / units

Diff for /src/usr.bin/units/units.1 between version 1.14 and 1.15

version 1.14, 2003/02/18 07:57:49 version 1.15, 2003/06/10 09:12:12
Line 15 
Line 15 
 .\"  .\"
 .\" I would appreciate (though I do not require) receiving a copy of any  .\" I would appreciate (though I do not require) receiving a copy of any
 .\" improvements you might make to this program.  .\" improvements you might make to this program.
 .\"  .\"
 .Dd July 14, 1993  .Dd July 14, 1993
 .Dt UNITS 1  .Dt UNITS 1
 .Os  .Os
Line 42 
Line 42 
 It also does not handle logarithmic units such as bels.  It also does not handle logarithmic units such as bels.
 It works interactively by prompting the user for input:  It works interactively by prompting the user for input:
 .Pp  .Pp
 .nf  .Bd -literal -offset indent
     You have: meters  You have: meters
     You want: feet  You want: feet
             * 3.2808399          * 3.2808399
             / 0.3048          / 0.3048
   
     You have: cm^3  You have: cm^3
     You want: gallons  You want: gallons
             * 0.00026417205          * 0.00026417205
             / 3785.4118          / 3785.4118
 .fi  .Ed
 .Pp  .Pp
 The  The
 .Nm  .Nm
 program can handle numbers as well:  program can handle numbers as well:
 .Pp  .Pp
 .nf  .Bd -literal -offset indent
     You have: 60 miles/hr  You have: 60 miles/hr
     You want: km/hr  You want: km/hr
             * 96.56064          * 96.56064
             / 0.010356187          / 0.010356187
   
     You have: 5 austriaschilling  You have: 5 austriaschilling
     You want: 100 italylira  You want: 100 italylira
             * 7.0357114          * 7.0357114
             / 0.14213204          / 0.14213204
 .fi  .Ed
 .Pp  .Pp
 In other words, 60 miles per hour is about 96.6 km/hr, and 5 Austrian  In other words, 60 miles per hour is about 96.6 km/hr, and 5 Austrian
 Schillings will get you seven 100-Lira coins.  Schillings will get you seven 100-Lira coins.
Line 110 
Line 110 
 print a message indicating that the units are not conformable and  print a message indicating that the units are not conformable and
 it will display the reduced form for each unit:  it will display the reduced form for each unit:
 .Pp  .Pp
 .nf  .Bd -literal -offset indent
     You have: ergs/hour  You have: ergs/hour
     You want: fathoms kg^2 / day  You want: fathoms kg^2 / day
     conformability error  conformability error
             2.7777778e-11 kg m^2 / sec^3          2.7777778e-11 kg m^2 / sec^3
             2.1166667e-05 kg^2 m / sec          2.1166667e-05 kg^2 m / sec
 .fi  .Ed
 .Pp  .Pp
 The conversion information is read from a units data file.  The conversion information is read from a units data file.
 The default file includes definitions for most familiar units,  The default file includes definitions for most familiar units,

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15