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,FREEMAIL_FROM, 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: "Corey Ashford" Subject: Re: precise floats Date: 1998/08/04 Message-ID: <6q8afs$5aq$1@usenet.rational.com>#1/1 X-Deja-AN: 377998956 References: <6q7vtb$jk$1@heliodor.xara.net> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Rational Software Newsgroups: comp.lang.ada Date: 1998-08-04T00:00:00+00:00 List-Id: Bob Fletcher wrote in message <6q7vtb$jk$1@heliodor.xara.net>... >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? > > The most straight-forward and portable way is to use a declaration like: type my_big_float is digits 12; If the compiler doesn't have an underlying type that supports that precision it will tell you so. If you need more precision than can be provided by the hardware and compiler, you'll probably obtain some extended precision arithmetic packages. - Corey