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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!feed.news.tiscali.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Float precision - gnat vs objectada Date: Wed, 01 Dec 2004 20:03:41 +0100 Organization: None Message-ID: <1237548.0CXMffCGLb@linux1.krischik.com> References: <1c8dc73c.0412010746.272b978@posting.google.com> Reply-To: martin@krischik.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1101927934 04 22456 uq65XyjLpSp6SQMA 041201 19:05:34 X-Complaints-To: usenet-abuse@t-online.de X-ID: TnpkH0ZEwewrZlXPHNlrZ9UBLxjoatyroLN5awCVG0Iqq1e6BnjCgI User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:6698 Date: 2004-12-01T20:03:41+01:00 List-Id: P Torle wrote: > 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; Maybe you want to use Long_Long_Float for maximum precision. See http://en.wikibooks.org/wiki/Programming:Ada:Packages:Standard:GNAT for predefined float types in GNAT And, of course, when you need compatiblty betreen GNAT and ObjectAda you will need to define your own float type. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com