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: 103376,b6d6e5cffbd63e86 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!news-fra1.dfn.de!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Units of measurement for Ada v2.7 Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1u5mt4g8vgme8.14oaipgk5hd0a$.dlg@40tude.net> <486f502e$0$6026$9a622dc7@news.kpnplanet.nl> Date: Sat, 5 Jul 2008 16:25:21 +0200 Message-ID: NNTP-Posting-Date: 05 Jul 2008 16:25:22 CEST NNTP-Posting-Host: aecee00b.newsspool1.arcor-online.net X-Trace: DXC=1R0iR?_L>Y]<<0iRN7DLEQic==]BZ:af^4Fo<]lROoRQ<`=YMgDjhgR^i`d^>^DLEQ[6LHn;2LCV^[ 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