aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/units/units.lib
Commit message (Collapse)AuthorAgeFilesLines
* Rename units.lib -> definitions.unitsEitan Adler2016-04-191-744/+0
| | | | | | | | - this matches GNU units 2.12 add ISO country codes from units 2.12 Notes: svn path=/head/; revision=298253
* units(1): Convert units.lib to use '#' instead of '/'.Eitan Adler2014-07-051-31/+31
| | | | | | | | This allows us to run GNU units against our data files and compare the output. In addition, current units(1) does not support '/' as a comment at all. Notes: svn path=/head/; revision=268279
* units(1): fix spellingEitan Adler2014-04-071-1/+1
| | | | | | | Pointyhat to: me Notes: svn path=/head/; revision=264211
* units(1): Add some some additional unitsEitan Adler2014-04-071-0/+6
| | | | | | | Most of these are also recognized by GNU units Notes: svn path=/head/; revision=264209
* units(1): Add some missing unitsEitan Adler2014-03-301-0/+3
| | | | Notes: svn path=/head/; revision=263930
* Teach units(1) that an erg and ergon are the same thing.Eitan Adler2014-03-301-0/+1
| | | | Notes: svn path=/head/; revision=263929
* Let units deal with Gas Mark and Stufe.David Malone2014-02-061-0/+2
| | | | Notes: svn path=/head/; revision=261555
* Add limited support for units that are related by affine ratherDavid Malone2008-08-161-5/+5
| | | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=181786
* - acificfrancexchange -> pacificfrancexchangeEdwin Groothuis2008-08-071-1/+3
| | | | | | | | | - Add comments about the pegged currencies. Submitted by: GeJ on #bsdports Notes: svn path=/head/; revision=181357
* Update the units library file.Edwin Groothuis2008-08-071-102/+193
| | | | | | | | | | | | | | | | | - 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 Notes: svn path=/head/; revision=181352
* Use miligram rather than mg in the definition of carats.David Malone2004-05-301-2/+2
| | | | | | | | PR: 61451 Submitted by: Tony Monroe <tmonroe+freebsd@nog.net> Notes: svn path=/head/; revision=129873
* Add r_earth, r_moon, r_sun, representing the terrestrial, lunar, andMatthew Hunt2003-11-051-0/+3
| | | | | | | | | | solar radii. The corresponding masses (m_earth, etc.) were already present. Source: "An Introduction to Modern Astrophysics," Carroll & Ostlie. Notes: svn path=/head/; revision=122143
* Add the British hundredweight (brhundredweight). For discussion, see:Tom Hukins2003-07-011-0/+7
| | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=117103
* The rate between EUR and USD has never been as large as our old valueJoerg Wunsch2002-07-091-2/+2
| | | | | | | | | | | (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 Notes: svn path=/head/; revision=99644
* Add tbl and tbsp as contractions of tablespoon, and tsp for teaspoon.Josef Karthauser2001-12-181-0/+3
| | | | | | | | Submitted by: banshee <banshee@pork.abattoir.com> MFC after: 7 days Notes: svn path=/head/; revision=88125
* Correct a typo.Dima Dorfman2001-06-011-1/+1
| | | | | | | | PR: 22885 Submitted by: Rene de Vries <rene@tunix.nl> Notes: svn path=/head/; revision=77566
* Add some gravitational values.Eric Melville2001-05-121-0/+4
| | | | | | | Approved by: murray Notes: svn path=/head/; revision=76524
* Add missing prefix for nano, I presume this was missing 'cos of theDavid Malone2001-02-281-10/+16
| | | | | | | | | | prefix recusrion bug. Remove units which can be derived using prefixes and other units. Add new prefixes for 2^10, 2^20, etc... Notes: svn path=/head/; revision=73230
* Correct spelling of millennium.David Malone2001-01-161-1/+1
| | | | | | | | PR: 24369 Submitted by: Tony Finch <dot@dotat.at> Notes: svn path=/head/; revision=71104
* Add 'shot', using the definition used by bars and shotglasses.Bill Fumerola2000-08-271-0/+1
| | | | Notes: svn path=/head/; revision=65138
* No such thing like `southamericarand' when Rand is the currency of ZA...Joerg Wunsch2000-04-181-1/+1
| | | | Notes: svn path=/head/; revision=59370
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Add euro-currency and constant rates of EMU area.Jean-Marc Zucconi1999-05-221-11/+16
| | | | | | | | PR: bin/9263 Submitted by: Timo J. Rinne <tri@freebsd.org> Notes: svn path=/head/; revision=47377
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=23012
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=21673
* Units conversion utility courtesy of NetBSD.Alexander Langer1996-06-081-0/+610
Submitted by: Jeremy Prior Obtained from: NetBSD Notes: svn path=/vendor/NetBSD/dist/; revision=16186