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=unavailable autolearn_force=no version=3.4.4 Path: border2.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!news.roellig-ltd.de!open-news-network.org!cyclone03.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!npeersf04.am4!fx15.fr7.POSTED!not-for-mail From: Brian Drummond Subject: Re: casting types Newsgroups: comp.lang.ada References: User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID: NNTP-Posting-Host: 62.49.20.82 X-Complaints-To: abuse@demon.net X-Trace: 1412241889 62.49.20.82 (Thu, 02 Oct 2014 09:24:49 UTC) NNTP-Posting-Date: Thu, 02 Oct 2014 09:24:49 UTC Date: Thu, 02 Oct 2014 09:24:49 GMT X-Received-Body-CRC: 2198076573 X-Received-Bytes: 1607 Xref: number.nntp.giganews.com comp.lang.ada:189300 Date: 2014-10-02T09:24:49+00:00 List-Id: 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