From: anon@anon.org (anon)
Subject: Re: How to put Floats in an Output File?
Date: Sat, 10 Jan 2009 01:06:33 GMT
Date: 2009-01-10T01:06:33+00:00 [thread overview]
Message-ID: <twS9l.272904$Mh5.162463@bgtnsc04-news.ops.worldnet.att.net> (raw)
In-Reply-To: e4441a73-0a37-49e5-b54b-b6d43dad4c87@a29g2000pra.googlegroups.com
with Ada.Float_Text_IO ;
Ada.Float_Text_IO.Put ( File => Outp_File, Item => 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 <e4441a73-0a37-49e5-b54b-b6d43dad4c87@a29g2000pra.googlegroups.com>, tolkamp <f.tolkamp@chello.nl> 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 : 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
next prev parent reply other threads:[~2009-01-10 1:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-09 21:14 How to put Floats in an Output File? tolkamp
2009-01-09 21:28 ` Adam Beneschan
2009-01-09 21:47 ` Robert A Duff
2009-01-10 1:06 ` anon [this message]
2009-01-10 11:15 ` tolkamp
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox