From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,f926b4e52d961710,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!feeder.news-service.com!news.netcologne.de!newsfeed-fusi2.netcologne.de!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: ANN: Units of Measurements for Ada v2.9 Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH Date: Sun, 14 Jun 2009 14:34:08 +0200 Message-ID: NNTP-Posting-Date: 14 Jun 2009 14:34:11 CEST NNTP-Posting-Host: 32047116.newsspool4.arcor-online.net X-Trace: DXC=kjei;]oJh3o^Y=RbYBPl4`4IUKQOROoDNcfSJ;bb[eIRnRBaCdEii X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:6466 Date: 2009-06-14T14:34:11+02:00 List-Id: 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