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-Language: ENGLISH,ASCII X-Google-Thread: 103376,3fec9418c677c0c7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-14 08:32:39 PST Path: archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!news.mailgate.org!newsfeeder.edisontel.com!itgate.net!news-out.tin.it!news-in.tin.it!news!not-for-mail From: "Stefano M." Newsgroups: comp.lang.ada Subject: Re: Gnat's Ada.Float_Text_IO.Put problem Date: Wed, 14 Jan 2004 17:11:54 +0100 Organization: Centro Servizi Interbusiness Message-ID: References: <8c4gd1-ifb.ln1@beastie.ix.netcom.com> NNTP-Posting-Host: host26-54.pool21759.interbusiness.it Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: fata.cs.interbusiness.it 1074096990 18509 217.59.54.26 (14 Jan 2004 16:16:30 GMT) X-Complaints-To: news@interbusiness.it, abuse@interbusiness.it NNTP-Posting-Date: Wed, 14 Jan 2004 16:16:30 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en In-Reply-To: <8c4gd1-ifb.ln1@beastie.ix.netcom.com> Xref: archiver1.google.com comp.lang.ada:4405 Date: 2004-01-14T17:11:54+01:00 List-Id: Dennis Lee Bieber wrote: > Please supply the EXACT code you are having problems with... > > Did you even try compiling that? Here's my paraphrased copy of YOUR > code, AND the compiler output! You are right, there was a missing line (since I cleaned the program a bit before pasting it on the message). Anyway: ste@sim:~/prove$ cat main.adb with Ada.Float_Text_IO; with Ada.Text_IO; use Ada.Text_IO; procedure Main is Sample_Float : Float := 10.123; begin Put("Standard 'put' behaviour from Ada.Float_Text_IO: 10,123 = "); Ada.Float_Text_IO.Put(Sample_Float); end Main; ste@sim:~/prove$ gnatmake main gcc -c main.adb gnatbind -x main.ali gnatlink main.ali ste@sim:~/prove$ ./main Standard 'put' behaviour from Ada.Float_Text_IO: 10,123 = -0.00000E+00 As you can see the problem is still there. I found this thread on one of the ACT mailing lists which shed some light on the matter: http://www.act-europe.fr/mail/chat/2000-07/threads.html#00038 Seems like I'm not the only one experiencing this kind of problem. > [wulfraed@beastie ada]$ ./fio > Standard float IO 'put' of 10.123 = 1.01230E+01 Lucky you! My performance test programs all rely on the float image function to display the results... Missing that function, I coded a very na�ve one, using the Float'Floor function and Integer casts all around, but I often get costraint errors, this problems's gonna drive me crazy. Stefano