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 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!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!newsmst01b.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr14.news.prodigy.com.POSTED!4988f22a!not-for-mail From: Newsgroups: comp.lang.ada References: <1581461.uQ1jN63t33@linux1.krischik.com> <1928817.EZCl3m4u3t@linux1.krischik.com> Subject: Re: What about big integers in Ada 2005? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-ID: NNTP-Posting-Host: 64.164.117.94 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr14.news.prodigy.com 1128270027 ST000 64.164.117.94 (Sun, 02 Oct 2005 12:20:27 EDT) NNTP-Posting-Date: Sun, 02 Oct 2005 12:20:27 EDT Organization: SBC http://yahoo.sbc.com X-UserInfo1: TSU[@SBEQJV]SQ@[EZOD]_\@VR]^@B@MCPWZKB]MPXHBTWICYFWUQBKZQLYJX\_ITFD_KFVLUN[DOM_A_NSYNWPFWNS[XV\I]PZ@BQ[@CDQDPCL^FKCBIPC@KLGEZEFNMDYMKHRL_YYYGDSSODXYN@[\BK[LVTWI@AXGQCOA_SAH@TPD^\AL\RLGRFWEARBM Date: Sun, 02 Oct 2005 16:20:27 GMT Xref: g2news1.google.com comp.lang.ada:5343 Date: 2005-10-02T16:20:27+00:00 List-Id: "Martin Krischik" wrote in message news:1928817.EZCl3m4u3t@linux1.krischik.com... > Dennis Lee Bieber wrote: > > > I'll admit I'm somewhat surprised GNAT (and likely others) > > implemented fixed-point math using scaled integers -- rather than a BCD > > package. > > I allways thought we have both: > > http://en.wikibooks.org/wiki/Ada_Programming/Types/delta > http://www.adaic.com/standards/95lrm/html/RM-3-5-9.html > These citiations refer to the decimal type. This type is still constrained by the underlying hardware. For example, type Decimal_Number is delta 0.001 digits 20; will not compile under GNAT. Dr. Beiber is correct in his suprise that Ada does not have a straightforward approach to BCD. Of course, few languages do have this. COBOL continues to be an easy approach to solving business data processing problems that falls short in Ada, C++, C, Java, and most other languages. Somehow, the designers of these languages just never quite understood this simple idea. Richard Riehle