comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: Aft, Fore, and Exp
Date: 1999/06/09
Date: 1999-06-09T00:00:00+00:00	[thread overview]
Message-ID: <m37lpdb9is.fsf@mheaney.ni.net> (raw)
In-Reply-To: 4Lv73.14$ep6.23052@ratbert.tds.net

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.









  parent reply	other threads:[~1999-06-09  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-09  0:00 Aft, Fore, and Exp dginc
1999-06-09  0:00 ` David C. Hoos, Sr.
1999-06-09  0:00 ` Matthew Heaney [this message]
1999-06-09  0:00 ` John Herro
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox