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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,544e7f5698c48b7c X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: precise floats Date: 1998/08/06 Message-ID: #1/1 X-Deja-AN: 378535635 X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 902417155 28220 (None) 128.122.140.58 Organization: New York University Newsgroups: comp.lang.ada Date: 1998-08-06T00:00:00+00:00 List-Id: C Green said << In article <6q7vtb$jk$1@heliodor.xara.net>, Bob Fletcher wrote: What is the best way to define a float type that has greater precision, (like a lot greater), than the default one? Is there a simple way to do this? type my_very_precise_type is digits ; where is the number of digits of precision you need. Be aware, however, that few compilers support float types of precision greater than 15 digits. >> Surely better advice is type my_very_precise_type is System.Max_Digits; << If you have an application that depends on floating-point calculations of very high precision, be especially careful in numerical analysis, design, and testing. Don't accept vendor's claims that their numerical libraries perform correctly; test them in computations that are required in your application. >> or insist on Annex G validation. For almost all purposes, the ACVC validation tests for accuracy of elementary functions should prove adequate.