comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Drummond <brian3@shapes.demon.co.uk>
Subject: Re: casting types
Date: Thu, 02 Oct 2014 09:24:49 GMT
Date: 2014-10-02T09:24:49+00:00	[thread overview]
Message-ID: <BR8Xv.321149$GP4.310793@fx15.fr7> (raw)
In-Reply-To: bb7525b0-cbaf-474a-bf40-50db2aa70ea3@googlegroups.com

On Tue, 30 Sep 2014 19:56:59 -0700, Stribor40 wrote:

> ok so i tried truncation attribute and that works just great. Now I want
> to output this float point to the screen and this is the way i did
> it....myFunction is myFunction that returns float....
> 
> Put(Item=>myFunction,Exp=>0,Aft=>5);
> 
> which gives me for example something like this... 0.42997 where without
> using this function i would get for example  3.23684E-01.....
> 
> Is there any other way to do this?

At this point it's not clear what "do this" means or why the second 
example is a scientific notation representation of a completely different 
number.

Put together the smallest complete compilable example of the problem you 
see, and it will help the discussion along wonderfully.

- Brian


  parent reply	other threads:[~2014-10-02  9:24 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-01  1:49 casting types Stribor40
2014-10-01  2:06 ` Jeffrey Carter
2014-10-01  2:13   ` Stribor40
2014-10-01  2:56   ` Stribor40
2014-10-01 13:18     ` Dennis Lee Bieber
2014-10-01 13:55       ` Stribor40
2014-10-01 14:23         ` G.B.
2014-10-01 17:16           ` Stribor40
2014-10-01 17:38             ` Dirk Heinrichs
2014-10-02  1:47               ` Dennis Lee Bieber
2014-10-01 18:11         ` Jeffrey Carter
2014-10-02  9:21         ` Brian Drummond
2014-10-02  9:24     ` Brian Drummond [this message]
2014-10-03  3:35       ` Stribor40
2014-10-03  7:45         ` Björn Lundin
2014-10-03  8:29         ` Jacob Sparre Andersen
2014-10-06 23:36           ` brbarkstrom
2014-10-07  0:03             ` Jeffrey Carter
2014-10-07  0:21               ` brbarkstrom
replies disabled

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