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,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f3f942ceb60412f0 X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: Aft, Fore, and Exp Date: 1999/06/09 Message-ID: #1/1 X-Deja-AN: 487553872 References: <4Lv73.14$ep6.23052@ratbert.tds.net> NNTP-Posting-Date: Wed, 09 Jun 1999 09:47:33 PDT Newsgroups: comp.lang.ada Date: 1999-06-09T00:00:00+00:00 List-Id: On 09 Jun 1999 15:29, dginc@tds.net wrote: > Need help on how to use these. do they go in declaration?? example?? > what i have is my output coming out to 1.98000E+01 and i want it to > show 19.8 or 20 rounded off. how do i do this??? See the Exp param to 0: Put (Float_Value, Exp => 0); The operation Put is provided by an instantiation of package Ada.Text_IO.Float_IO on your floating point type. If you're using the predefined type Float, then there's an instantation provided for you already, Ada.Float_Text_IO.