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.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,93265a02b823f66a X-Google-Attributes: gid103376,public From: johnherro@aol.com (John Herro) Subject: Re: Float to string conversion Date: 1999/03/18 Message-ID: <19990318161952.16104.00000249@ngol02.aol.com>#1/1 X-Deja-AN: 456243833 References: <7crnh9$773$1@nnrp1.dejanews.com> X-Admin: news@aol.com Organization: AOL http://www.aol.com Newsgroups: comp.lang.ada Date: 1999-03-18T00:00:00+00:00 List-Id: dd5372@my-dejanews.com wrote: > I ... need to ... convert float values to strings. > Using the 'image property ... on floats gives > me the default Ada scientific notation for floats. In the package Ada.Float_Text_IO is procedure Put(To : out String; Item : in Float; Aft : in Field := ...; Exp : in Field := ...); where Field is a subtype of Integer. This writes to a String, letting you specify the number of places after the decimal point and the size of the exponent field, which can be zero. That should do it for you. - John Herro You can download a shareware AdaTutor program at http://members.aol.com/AdaTutor