Sponsored Content
Special Forums News, Links, Events and Announcements Software Releases - RSS News Units of measurement for Ada 2.8 (Default branch) Post 302212155 by Linux Bot on Sunday 6th of July 2008 05:50:11 PM
Old 07-06-2008
Units of measurement for Ada 2.8 (Default branch)

ImageThe library provides an implementation of dimensioned values for Ada. Unit checks are made at run-time, if not optimized out by the compiler. SI and irregular measurement units are supported. Shifted units like degrees Celsius are supported too. Conversions from and back to strings are provided for all various irregular units. An extensive set of GTK widgets for dealing with dimensioned values is included, though use of GTK is not mandatory for the rest of the library.License: GNAT Modified GPL (GMGPL)Changes:
Conversion factors were verified and, whennecessary, corrected. The references to thesources are now provided in the documentation. Theirregular units dram, gill, and league were added.The SI derived unit katal (kat) was added. Theirregular unit candle was removed. Bq was moved toderived SI units. The Unicode ounce sign is nowsupported for ounces. A bug was fixed inGet_Value_As.Image

More...
 
units(1)							   User Commands							  units(1)

NAME
units - converts quantities expressed in standard scales to other scales SYNOPSIS
units DESCRIPTION
units converts quantities expressed in various standard scales to their equivalents in other scales. It works interactively in this fash- ion: You have:~~inch You want:~~cm * 2.540000e+00 / 3.937008e-01 A quantity is specified as a multiplicative combination of units optionally preceded by a numeric multiplier. Powers are indicated by suf- fixed positive integers, division by the usual sign: You have:~~15 lbs force/in2 You want:~~atm * 1.020689e+00 / 9.797299e-01 units only does multiplicative scale changes; thus it can convert Kelvin to Rankine, but not Celsius to Fahrenheit. Most familiar units, abbreviations, and metric prefixes are recognized, together with a generous leavening of exotica and a few constants of nature including: pi ratio of circumference to diameter, c speed of light, e charge on an electron, g acceleration of gravity, force same as g, mole Avogadro's number, water pressure head per unit height of water, au astronomical unit. Pound is not recognized as a unit of mass; lb is. Compound names are run together, (for example, lightyear). British units that differ from their U.S. counterparts are prefixed thus: brgallon. For a complete list of units, type: cat /usr/share/lib/unittab FILES
/usr/share/lib/unittab ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWesu | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5) SunOS 5.11 14 Sep 1992 units(1)
All times are GMT -4. The time now is 06:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy