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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1525d71e3169ed06 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!news.tele.dk!not-for-mail Sender: malo@0x50a5b157.boanxx18.adsl-dhcp.tele.dk Newsgroups: comp.lang.ada Subject: Re: Float precision - gnat vs objectada References: <1c8dc73c.0412010746.272b978@posting.google.com> From: Mark Lorenzen Date: 02 Dec 2004 00:32:31 +0100 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: TDC Totalloesninger NNTP-Posting-Host: 80.165.177.87 X-Trace: 1101943951 dtext02.news.tele.dk 172 80.165.177.87:28779 X-Complaints-To: abuse@post.tele.dk Xref: g2news1.google.com comp.lang.ada:6703 Date: 2004-12-02T00:32:31+01:00 List-Id: knutby@torle.com (P Torle) writes: > I'm working on a Ada95/C project that shall run on both Linux and > Windows. > I have some problems getting the same float precision on both > platforms. > Example: > ----------------------------- > subtype Real is Long_Float; > pi : Real; > > pi := 3.14159_26535_89793_23846_26433_83279_50288_41971_69399_37511; Just a little comment: The values of Pi and e are defined in the package Ada.Numerics, so you do not need to define them yourself. Regards, - Mark Lorenzen