Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
GNU Units
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== GNU implementation === GNU ''units'' includes several extensions to the original version,<ref>{{cite web|title=Units: A Unit Conversion Program and Scientific Calculator|publisher=Free Software Foundation, Inc.|location=Boston, MA|url=https://www.gnu.org/software/units/manual/units.html|year=2014|author=Mariano, Adrian|access-date=2014-03-29}} </ref> including * Exponents can be written with <code>^</code> or <code>**</code>. * Exponents can be larger than 9 if written with <code>^</code> or <code>**</code>. * Rational and decimal exponents are supported. * Sums of units (e.g., <code>{{nowrap|btu + ft lbf}}</code>) can be converted. * Conversions can be made ''to'' sums of units, termed ''unit lists'' (e.g., from degrees to degrees, minutes, and seconds). * Units that measure reciprocal dimensions can be converted (e.g., <code>S</code> to <code>megohm</code>). * Parentheses for grouping are supported. This sometimes allows more natural expressions, such as in the example given in [[#Complex units expressions|Complex units expressions]]. * Roots of units (e.g., <code>{{nowrap|sqrt((lbf/inch) / lb)}}</code> can be computed. * Affine units conversions (e.g., Β°F to Β°C) are supported. * Functions such as sin, cos, ln, log, and log2 are included. * A script for updating the currency conversions is included; the script requires [[Python (programming language)|Python]]. Units definitions, including nonlinear conversions and unit lists, are user extensible. The [[plain text]] database ''definitions.units'' is a good reference in itself, as it is extensively commented and cites numerous sources.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)