Commit Graph

44 Commits

Author SHA1 Message Date
joel
4234591b03 mdoc: terminate quoted strings.
Reviewed by:	brueffer
2012-03-26 15:18:14 +00:00
ed
7db87786d7 Add missing static keywords to units(1) 2011-11-06 08:18:17 +00:00
dwmalone
4ad48ef959 It seems when I added code for affine unit changes to units, I
forgot to tell the man page we could now convert Celsius to Fahrenheit.

Approved by:	re (kib)
MFC after:	1 month
2011-09-15 19:52:43 +00:00
dwmalone
0d283f41de Add limited support for units that are related by affine rather
than linear relations. We can now convert degC to degF.

586 units, 56 prefixes
You have: 24 degC
You want: degF
	75.2
You have: degC
You want: K
	 (-> x*1 +273.15)
	 (<- y*1 -273.15)
2008-08-16 16:27:41 +00:00
edwin
9503a623e9 - acificfrancexchange -> pacificfrancexchange
- Add comments about the pegged currencies.

Submitted by:	GeJ on #bsdports
2008-08-07 05:35:01 +00:00
edwin
b5d4cdc75b Update the units library file.
- Merge changes from NetBSD and OpenBSD.
- Add the Euro as a primitive unit, add old converted currency and
  pegged currency (Obtained from Wikipedia)
- Rename "dollar" to "usdollar" as primitive unit, remove non-pegged
  currency and add pegged currency (Obtained from Wikipedia)
- Updated the accuracy of a lot of constants (Obtained from Wikipedia)

PR:		bin/106545 bin/88252
Submitted by:	trasz<trasz@pin.if.uz.zgora.pl>, J Vinopal <banshee@abattoir.com>
Approved by:	bde@ (mentor)
MFC after:	1 week
2008-08-07 00:14:56 +00:00
ru
1541af42f1 Expand *n't contractions. 2005-02-13 22:25:33 +00:00
ru
7f3c7f0d46 Sort sections. 2005-01-18 13:43:56 +00:00
ru
fb1d8b3724 Mechanically kill hard sentence breaks. 2004-07-02 22:22:35 +00:00
ru
cfd40890fc mdoc(7): Fixed list types. 2004-07-02 19:37:24 +00:00
dwmalone
597e634e11 Use miligram rather than mg in the definition of carats.
PR:		61451
Submitted by:	Tony Monroe <tmonroe+freebsd@nog.net>
2004-05-30 16:09:12 +00:00
mph
13c2e3cf4f Add r_earth, r_moon, r_sun, representing the terrestrial, lunar, and
solar radii.  The corresponding masses (m_earth, etc.) were already
present.

Source:		"An Introduction to Modern Astrophysics," Carroll & Ostlie.
2003-11-05 22:29:48 +00:00
tom
a8a0d26127 Add the British hundredweight (brhundredweight). For discussion, see:
http://london.pm.org/pipermail/london.pm/Week-of-Mon-20030630/019926.html
For a definition, see:
http://www.bartleby.com/61/55/H0325500.html

Also add some more computing terms described at:
http://www.wikipedia.org/wiki/Integral_data_type

Reviewed by:	dwmalone
MFC after:	2 weeks
2003-07-01 10:33:27 +00:00
dwmalone
8e2ebdedb2 Add enough consts to keep everyone happy. 2002-07-28 16:23:28 +00:00
joerg
53a32e18d8 The rate between EUR and USD has never been as large as our old value
(1.12) since the introductions as a common EU currency.  Anyway, since
the rate now seems to stabilize just around 1.00, fix up our value
here.

MFC after:	1 day
2002-07-09 08:47:03 +00:00
joe
54c092ee14 Add tbl and tbsp as contractions of tablespoon, and tsp for teaspoon.
Submitted by:	banshee <banshee@pork.abattoir.com>
MFC after:	7 days
2001-12-18 11:25:58 +00:00
ru
7ed2dfe749 Install files via FILES. 2001-12-17 16:02:15 +00:00
markm
a71a530c96 WARNS=2 is going to become the default, so remove it from here. 2001-12-11 23:27:23 +00:00
dd
911ca14c87 Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
dwmalone
fce7386c11 Add prototypes and turn on WARNS=?2. 2001-06-24 12:23:54 +00:00
dd
b5f1d72b5f Correct a typo.
PR:		22885
Submitted by:	Rene de Vries <rene@tunix.nl>
2001-06-01 02:53:32 +00:00
eric
13fb775e00 Add some gravitational values.
Approved by:	murray
2001-05-12 21:21:38 +00:00
dougb
fa10273007 Reverse order of from and to in order to match reality.
PR:		26631
Submitted by:	Glenn Johnson, glennpj@charter.net
2001-04-25 07:43:45 +00:00
dcs
4fa94267e2 All temperature scales are centigrades. Use "Celsius" instead. 2001-03-01 05:51:46 +00:00
dwmalone
dceceb9475 Add missing prefix for nano, I presume this was missing 'cos of the
prefix recusrion bug. Remove units which can be derived using prefixes
and other units.

Add new prefixes for 2^10, 2^20, etc...
2001-02-28 16:00:32 +00:00
dwmalone
24a3b712aa Give units a bit of a cleanup:
1) Fix a bug where the recursion on prefixes where if recusrion failed
	then the next attempt started too far along the string.
2) Up some internal limits that we were about to hit off.
3) Change the constness and signedness of some things and complete missing
	prototypes.
4) Remove the readerror function 'cos it could print out the wrong
	wrong file name. Replace it with more useful error messages.
5) Use sizeof when passing buffers to fgets.
6) Warn about empty prefix definitions.

Reviewed by:	iedowse
2001-02-28 15:57:38 +00:00
dwmalone
c468833f11 Correct spelling of millennium.
PR:		24369
Submitted by:	Tony Finch <dot@dotat.at>
2001-01-16 10:07:04 +00:00
dwmalone
8921eca1c0 As far as I can tell, you have never been able to use 'ab' as a unit
name if 'a' and 'b' are unit names. You can use 'a b' though.
2000-12-24 16:15:28 +00:00
ru
e6cfc0711d Prepare for mdoc(7)NG. 2000-12-19 16:00:12 +00:00
ru
eb8c554f56 mdoc(7) police: use certified section headers wherever possible. 2000-11-17 11:44:16 +00:00
billf
4d59408d29 Add 'shot', using the definition used by bars and shotglasses. 2000-08-27 22:02:42 +00:00
kris
8fb74c8657 Don't segv when trying to add a 0-length unit name.
Some string-related cleanups inspired by OpenBSD.

Reviewed by:	asmodai
2000-07-31 10:49:08 +00:00
joerg
059059da44 No such thing like `southamericarand' when Rand is the currency of ZA... 2000-04-18 16:37:43 +00:00
peter
3b842d34e8 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
jmz
8c688cbc0b Add euro-currency and constant rates of EMU area.
PR:		bin/9263
Submitted by:	Timo J. Rinne <tri@freebsd.org>
1999-05-22 02:01:59 +00:00
bde
c29de40a95 Install using ${INSTALL}, not using `install'. 1998-09-20 21:38:12 +00:00
charnier
409a50cddf .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
charnier
85fa6720fe Use err(3). Cosmetic in usage(). Rewrote man page in mdoc format. 1997-08-21 06:49:33 +00:00
alex
8e5092c884 Specify the full path of units.lib in the FILES section. 1997-05-06 03:31:14 +00:00
peter
f390c26dd9 Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
jkh
808a36ef65 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
alex
a9d801afa6 Added revised manpage submitted by the author of units.
Reviewed by:	alex
Submitted by:	Adrian Mariano <adrian@cam.cornell.edu>
1996-06-10 00:43:42 +00:00
alex
6e00df7691 Fix exit code when used in non-interactive mode.
Remove ';' typo attached to if statement.
1996-06-08 04:30:06 +00:00
alex
8286eb57f9 Units conversion utility courtesy of NetBSD.
Submitted by:	Jeremy Prior
Obtained from:	NetBSD
1996-06-08 03:43:43 +00:00