comp.lang.ada
 help / color / mirror / Atom feed
From: Tucker Taft <stt@averstar.com>
Subject: Re: ratioanl number type
Date: 1999/12/03
Date: 1999-12-03T00:00:00+00:00	[thread overview]
Message-ID: <3847E553.1452CA24@averstar.com> (raw)
In-Reply-To: 38473D8A.9BB68676@gte.net

"Clifford J. Nelson" wrote:
> 
> Are there any Ada95 examples in books or on the web that implement the
> exact rational number data type with overloading of all appropriate
> arithmetic operations and conversion to and from other number types, all
> in Ada95 without anything relating to the platform it will run on? It
> goes without saying that it is too difficult to predict the number of
> digits that the numerator and denominator need to have, so, available
> memory should be the only limit to their size.

We created this for our Ada 83 compiler long ago.  It is written in
Ada 83.  Here is a link to it.  It worked for years, but we are
not in a position to provide a warranty on it...

    http://www.averstar.com/~stt/_adasource/

Post a reply if you find an obvious stupidity in it somewhere.
Enjoy...

>   Cliff Nelson

-- 
-Tucker Taft   stt@averstar.com   http://www.averstar.com/~stt/
Technical Director, Distributed IT Solutions  (www.averstar.com/tools)
AverStar (formerly Intermetrics, Inc.)   Burlington, MA  USA




  reply	other threads:[~1999-12-03  0:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-03  0:00 ratioanl number type Clifford J. Nelson
1999-12-03  0:00 ` Tucker Taft [this message]
1999-12-03  0:00 ` Gautier
1999-12-03  0:00 ` Dmitriy Anisimkov
1999-12-11  0:00   ` Clifford J. Nelson
     [not found]     ` <01bf43ea$646d5bc0$022a6282@dieppe>
1999-12-11  0:00       ` Clifford J. Nelson
     [not found]         ` <01bf43f3$3aadb600$022a6282@dieppe>
1999-12-11  0:00           ` Vladimir Olensky
1999-12-12  0:00             ` Robert Dewar
1999-12-12  0:00               ` Vladimir Olensky
1999-12-12  0:00                 ` MMX (was Re: ratioanl number type) Vladimir Olensky
1999-12-14  0:00                 ` ratioanl number type Robert Dewar
1999-12-17  0:00                 ` Gisle S�lensminde
1999-12-19  0:00                   ` Robert Dewar
1999-12-12  0:00         ` Robert Dewar
1999-12-11  0:00     ` Robert Dewar
1999-12-09  0:00 ` rational " Wes Groleau
  -- strict thread matches above, loose matches on Subject: below --
1999-12-15  0:00 ratioanl " Alexander E. Kopilovitch
replies disabled

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