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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,245c84afd1e393ce X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g47g2000cwa.googlegroups.com!not-for-mail From: gautier_niouzes@hotmail.com Newsgroups: comp.lang.ada Subject: Re: What about big integers in Ada 2005? Date: 16 Sep 2005 07:33:26 -0700 Organization: http://groups.google.com Message-ID: <1126881206.417473.259360@g47g2000cwa.googlegroups.com> References: NNTP-Posting-Host: 213.173.163.2 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1126881211 16602 127.0.0.1 (16 Sep 2005 14:33:31 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 16 Sep 2005 14:33:31 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 zrhprx23 (NetCache NetApp/6.0),1.1 webwasher (Webwasher 5.2.0.1781) Complaints-To: groups-abuse@google.com Injection-Info: g47g2000cwa.googlegroups.com; posting-host=213.173.163.2; posting-account=CZAoAgwAAAD9ntJQ85OlWL0_Q5EFdzP_ Xref: g2news1.google.com comp.lang.ada:4797 Date: 2005-09-16T07:33:26-07:00 List-Id: jtg: > When I started to learn Ada, one of the most interesting features for me > was the possibility to declare integer type of the specified range. > I imagined that the integer type may be of any size. > However, several years later I needed big integers and I was > disappointed - Ada95 does not support integers of ANY size, > it can support only those integers that are supported > by the processor, or smaller. > > Does Ada 2005 support big integers? > Where can I learn how to use them? Big integers are special beasts that have to be treated differently than "normal" integers because they can have an arbitrary size in memory and require a specific handling not foreseen in "normal" processors. However big integers are doable and available in every Ada version; on the following site you'll find a bunch of downloadble packages: http://www.chez.com/bignumber/ BTW, the freshest version of my multi-precision integers are in mathpaqs.zip on my Ada page below. HTH ______________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/index.htm Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!