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,7a4c5d22669609bf X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 05 Dec 2007 14:51:57 +0100 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: ObjectAda and Long_Long_Float References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4756ad00$0$13123$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 05 Dec 2007 14:52:00 CET NNTP-Posting-Host: 85800929.newsspool2.arcor-online.net X-Trace: DXC==UZK00?J`^7QbA1[CgMQ00A9EHlD;3Yc24Fo<]lROoR14nDHegD_]R5@d0K]bEY7:1;9OJDO8_SK6NSZ1n^B98i:6D<;E9XTYX? X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:18728 Date: 2007-12-05T14:52:00+01:00 List-Id: axtens schrieb: > G'day everyone, > > In Dmitry Kazakov's Intervals package, he was a file, > Float_Intervals.ads which contains: > > with Intervals.Floats; > package Float_Intervals is new Intervals.Floats (Float); > > Today I put Long_Float in between the parentheses instead of Float, > tweaked a few things in my project and now I've got better precision. > If I want to increase the precision, what else can in put in there? > "digits 36"? > You can put in a type name of any floating point type, e.g. one that has "digits 36" in it's declaration. The compiler you are using will tell you whether it can support a floating point type with 36 digits. If so, then Dmitry's generic can be instantiated with the type. If you need to use results in another language (through a binding), have a look at Interfaces.C; there are C_float and related types. They should match FPT types in other languages (that typically do not support programmer defined FPT types).