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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,82221a0da9c4aa5d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-19 05:24:27 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed1.easynews.com!easynews.com!easynews!diablo.voicenet.com!nntp.abs.net!lore.csc.com!baen1673807.greenlnk.net!baen1673807!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: float value without power Date: Thu, 19 Jun 2003 13:02:58 +0100 Organization: BAE SYSTEMS Message-ID: <3ef1a5fe$1@baen1673807.greenlnk.net> References: NNTP-Posting-Host: 20.44.240.33 X-Trace: lore.csc.com 1056024207 1531 20.44.240.33 (19 Jun 2003 12:03:27 GMT) X-Complaints-To: abuse@news.csc.com NNTP-Posting-Date: Thu, 19 Jun 2003 12:03:27 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Original-NNTP-Posting-Host: glkc1363740.sd.edinbr.gmav.gecm.com X-Original-Trace: 19 Jun 2003 13:01:02 +0100, glkc1363740.sd.edinbr.gmav.gecm.com Xref: archiver1.google.com comp.lang.ada:39443 Date: 2003-06-19T13:02:58+01:00 List-Id: "Etienne Baudin" wrote in message news:bcs323$925$1@news-reader13.wanadoo.fr... > If F is 123.456 > float'image(F) will be 1.2346e2. I Would like to get 123.465 in the string, > is it possible ? with Ada.Float_Text_IO; use Ada.Float_Text_IO; with Ada.Text_IO; use Ada.Text_IO; procedure Float_Output is F : Float := 123.456; begin Put (F, Aft => 3, Exp => 0); New_Line; end Float_Output;