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,6977f514d4290e5e X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!wn14feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: How to put Floats in an Output File? Reply-To: no to spamers (No@email.given.org) References: X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Sat, 10 Jan 2009 01:06:33 GMT NNTP-Posting-Host: 12.65.204.3 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1231549593 12.65.204.3 (Sat, 10 Jan 2009 01:06:33 GMT) NNTP-Posting-Date: Sat, 10 Jan 2009 01:06:33 GMT Organization: AT&T Worldnet Xref: g2news1.google.com comp.lang.ada:3235 Date: 2009-01-10T01:06:33+00:00 List-Id: 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 , tolkamp 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