comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Units of measurement for Ada v2.7
Date: Sat, 5 Jul 2008 16:25:21 +0200
Date: 2008-07-05T16:25:22+02:00	[thread overview]
Message-ID: <kzzigq1ghe69.1fnjyhq5kdp7h.dlg@40tude.net> (raw)
In-Reply-To: 486f502e$0$6026$9a622dc7@news.kpnplanet.nl

On Sat, 5 Jul 2008 12:43:04 +0200, ldries46 wrote:

> I am glad that such a program exists in ADA but I think there are more 
> programs that just convert dimensions.
> What I think that is more urgent is a standard database for such conversions 
> and a package that can use such a database in any program.
> In the past I wrote such a set of routines (in Visual C++) in which it was 
> possible to in and output in various dimensions. All calculations in 
> programs were done in the basic SI units although it was possible to input 
> something for instance in feet and output the result in inches. I think that 
> such a package would be of grat ease to much programmers.

The announced library works exactly that way, it does not convert anything,
it provides dimensioned values. Whether the value is input/output as foot,
meter etc, it is still the same value. There is no need to convert it. All
computations, are numerically performed in SI units. Talking about unit
checks, they are merely dimension checks. This means that the checks do not
prevent for example adding foots and meters, which physically is perfectly
feasible. They do adding meters to seconds.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



      reply	other threads:[~2008-07-05 14:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-02 20:02 ANN: Units of measurement for Ada v2.7 Dmitry A. Kazakov
2008-07-05 10:43 ` ldries46
2008-07-05 14:25   ` Dmitry A. Kazakov [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox