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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8c424d8135e68278 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-21 07:16:56 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!psinet-eu-nl!psiuk-p4!uknet!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Math Libraries (was Re: Ada2005) Date: Fri, 21 Dec 2001 09:49:17 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9vvi5e$e0a$1@nh.pace.co.uk> References: NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1008946158 14346 136.170.200.133 (21 Dec 2001 14:49:18 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 21 Dec 2001 14:49:18 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:18202 Date: 2001-12-21T14:49:18+00:00 List-Id: You are suggesting some version of specifying a "digits" clause but no "delta"? Then presuming the underlying implementation is some version of packed-decimal, performing effectively floating point math with some arbitrary number of digits? That I might put into the "Nice To Have" category, but I'm not sure the language would need a new data type. There are packages that define big number arithmetic & perhaps using some version of that would be a good place to start to see how useful it might be. Creating a new numeric type could be useful from a language standpoint since all the presumptions could be there about math operations, etc. (A private type with math ops defined just doesn't quite cut it - consider generics as an example) but I'd want some evidence that there is some significant user base that needs it before making it a language extension... MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Robert C. Leif, Ph.D." wrote in message news:mailman.1008921920.25553.comp.lang.ada@ada.eu.org... > From: Bob Leif > To: Marin Condic et al., > I agree; however, I believe that a decimal floating type should be created > or a work-around be provided to circumvent the static restrictions on type > decimal. I still wish to be able to specify the exponent at run-time. > PC performance has long since passed the point of needing to match the > numeric format to the machine instead of the human. For most commercial > uses, decimal numbers are a much better choice than binary numbers. >