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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,91965a012526b259 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!wns14feed!worldnet.att.net!attbi_s01.POSTED!53ab2750!not-for-mail From: "Steve" Newsgroups: comp.lang.ada References: Subject: Re: Float to String X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-ID: NNTP-Posting-Host: 24.21.42.251 X-Complaints-To: abuse@comcast.net X-Trace: attbi_s01 1100063123 24.21.42.251 (Wed, 10 Nov 2004 05:05:23 GMT) NNTP-Posting-Date: Wed, 10 Nov 2004 05:05:23 GMT Organization: Comcast Online Date: Wed, 10 Nov 2004 05:05:23 GMT Xref: g2news1.google.com comp.lang.ada:6103 Date: 2004-11-10T05:05:23+00:00 List-Id: Cross platform? Or just getting from point A to point B on the same architecture? Steve (The Duck) "Pascal Obry" wrote in message news:uekj4l18j.fsf@obry.net... > > I was wondering if there is a way to save a float into a string and read it > back without loosing precision ? > > I tried something like: > > F_Str : String (1 .. Float'Base'Digits); > > Float_Text_IO.Put (F_Str, My_Float, Aft => Float'Base'Digits); > > But this is not enough... Ideas ? > > Thanks, > Pascal. > > -- > > --|------------------------------------------------------ > --| Pascal Obry Team-Ada Member > --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE > --|------------------------------------------------------ > --| http://www.obry.org > --| "The best way to travel is by means of imagination" > --| > --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595