NetBSD/usr.bin/units
dholland f550f892a7 Some more corrections/additions in units.lib:
1. cables; US cables are 720 ft, but international cables are 1/10
nautical mile and UK Admiralty cables are 1/10 of 1853.2 meters
instead of 1852 meters. Make "cable" refer to the international
definition, and add "uscable" and "admiraltycable".

2. rods and chains. US rods and chains and furlongs are defined in
terms of US survey feet, not international feet. Since the US is
apparently working on retiring survey feet, it seems like the best way
forward on this is to define two sets of these units, one prefixed
with "us". Also since this file was inconsistent about using "survey"
vs. "surveyors", fill in more duplicates.

Furthermore, Gunter's rods and chains and links are as best I can tell
the same as the international ones, so since we already have
"gunterschain" add "guntersrod" and "gunterslink".

3. If we're going to make pf a special abbreviation for picofarad,
it's reasonable to make uf a special abbreviation for microfarad, and
if we're going to define "meg" for "megabyte" we should also have
"gig".

4. A "franklin" _is_ a statcoulomb, not an approximation of one.

5. "jewel" has two Es.
2022-10-24 05:52:48 +00:00
..
Makefile
README
pathnames.h
units.1
units.c
units.lib Some more corrections/additions in units.lib: 2022-10-24 05:52:48 +00:00

README

#	$NetBSD: README,v 1.2 1996/04/06 06:00:59 thorpej Exp $

This is a program which I wrote as a clone of the UNIX 'units'
command.  I threw it together in a couple days, but it seems to work,
with some restrictions.  I have tested it under DOS with Borland C and
Ultrix 4.2, and SunOS 4.1.  

This program differs from the unix units program in the following
ways:
   it can gracefully handle exponents larger than 9 in output
   it uses 'e' to denote exponentiation in numbers
   prefixes are listed in the units file
   it tries both -s and -es plurals
   it allows use of * for multiply and ^ for exponentiation in the input
   the output format is somewhat different

Adrian Mariano (adrian@cam.cornell.edu or mariano@geom.umn.edu)