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,6977f514d4290e5e X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!s9g2000prg.googlegroups.com!not-for-mail From: tolkamp Newsgroups: comp.lang.ada Subject: Re: How to put Floats in an Output File? Date: Sat, 10 Jan 2009 03:15:22 -0800 (PST) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 77.249.221.108 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1231586122 20039 127.0.0.1 (10 Jan 2009 11:15:22 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 10 Jan 2009 11:15:22 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s9g2000prg.googlegroups.com; posting-host=77.249.221.108; posting-account=CRTuqQoAAACkAj4MrK0vtmdX5EEtJNCk User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; InfoPath.1),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:3236 Date: 2009-01-10T03:15:22-08:00 List-Id: On 10 jan, 02:06, a...@anon.org (anon) wrote: > with Ada.Float_Text_IO ; > > Ada.Float_Text_IO.Put ( File =3D> Outp_File, Item =3D> Value ) ; > > -- or to user the standard output > > Ada.Float_Text_IO.Put ( Value ) ; > > -- Of course you can add a few options to more control the format > -- of the output. Options: Fore, Aft, Exp > > In , t= olkamp writes: > > > > >I try to put float values into a file using the following code: > > >package Float_Io is new Text_Io.Float_Io (Float); > > >Outp_File =A0: File_Type; > >Value : Float; > >Create (Outp_File, Out_File, Outp_Filename); > >Put (Outp_File, Float_Io.Put (Value)); > > >Compilation results in the following error message: > > >no candidate interpretations match the actuals: > >missing argument for parameter "Item" in call to Put > >context requires function call, found procedure name- Tekst uit oorspron= kelijk bericht niet weergeven - > > - Tekst uit oorspronkelijk bericht weergeven - Thank you for the solutions, these work perfect.