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=1.6 required=5.0 tests=BAYES_05,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a30e9cc47b5029fe,start X-Google-Attributes: gid103376,public From: "Clifford J. Nelson" Subject: ratioanl number type Date: 1999/12/03 Message-ID: <38473D8A.9BB68676@gte.net>#1/1 X-Deja-AN: 556049865 Distribution: world Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353" X-Abuse-Info: Otherwise we will be unable to process your complaint properly X-Complaints-To: abuse@gte.net X-Trace: /wq5/b/4qeEmicObLdncoLrmAI/ufk5U3YAw2nA/IaCFyM/0It38HHtdCSpdZHhrnuj3LJOVn3ZV!MLxhY1n7qpjm5i+xO+6DIz4iu2/8PJVdFAf8M3X0/ANOs6Y2VCZZ MIME-Version: 1.0 Reply-To: cnelson9@gte.net NNTP-Posting-Date: Fri, 03 Dec 1999 03:04:15 GMT Newsgroups: comp.lang.ada Date: 1999-12-03T00:00:00+00:00 List-Id: 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. Cliff Nelson