Units of measurement for Ada 3.2

Units of measurement for Ada library provides an implementation of dimensioned values for Ada.
Units of measurement for Ada 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.

Main features:

  • The type Unit denotes the dimension of a physical entity. The type Measure represents a dimensioned value;
  • Mixed unit arithmetic. Values in SI (Le Systeme International d'Unit�s) units can be mixed with irregular units (such as foot and yard) as long as the result is defined;
  • Shifted unit support (a widely used instance of a shifted unit is degree of Celsius);
  • The type Measure is generic, parameterized by a floating-point type. A non-generic version based on the type Float is also provided;
  • String to Measure conversion supports as wide set of irregular units as possible.
  • 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 many Ada compilers).

last updated on:
January 30th, 2012, 21:03 GMT
price:
FREE!
developed by:
Dmitry Kazakov
homepage:
www.dmitry-kazakov.de
license type:
GMGPL (GNAT Modified GPL)
category:
ROOT \ Science

FREE!

In a hurry? Add it to your Download Basket!

user rating 15

4.4/5
 

0/5

1 Screenshot
Units of measurement for Ada
What's New in This Release:
  • The procedure Put in Measures_UTF8_Edit has the additional parameters Field, Justify, and Fill.
  • Fedora and Debian packages are provided for both 32- and 64-bit x86 architectures.
read full changelog

Add your review!

SUBMIT