From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: ANN: Units of Measurements for Ada v2.9
Date: Sun, 14 Jun 2009 14:34:08 +0200
Date: 2009-06-14T14:34:11+02:00 [thread overview]
Message-ID: <cysfsax7i01i$.13hywe0yqf07p.dlg@40tude.net> (raw)
http://www.dmitry-kazakov.de/ada/units.htm
Provides support for handling dimensioned values in Ada. The key features:
1. The type Unit denotes the dimension of a physical entity. The type
Measure represents a dimensioned value;
2. Mixed unit arithmetic. Values in SI (Le Syst�me International d'Unit�s)
units can be mixed with irregular units (such as foot and yard) as long as
the result is defined;
3. Shifted unit support (a widely used instance of a shifted unit is degree
of Celsius);
4. The type Measure is generic, parameterized by a floating-point type. A
non-generic version based on the type Float is also provided;
5. String to Measure conversion supports as wide set of irregular units as
possible;
6. Currently the powers of the base unit components lie in the range -8..7.
This limitation has an implementation reason (absence of 64-bit modular
integers in some Ada compilers). For further discussion of this topic see;
7. GTK+ widgets for a comfortable visual measurement unit editing and
selection. The rest of the library can be used independently on this part
as well as on GTK+.
Changes to the previous version:
1. SI prefixes are used for dimensioned output;
2. GNAT project files reworked;
3. Minor bug fixes;
4. Installation instructions added.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
reply other threads:[~2009-06-14 12:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox