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: border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!news.roellig-ltd.de!open-news-network.org!cyclone02.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: <75969a22-d7f7-4517-9d10-6224beb3318c@googlegroups.com> 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: 1412241710 62.49.20.82 (Thu, 02 Oct 2014 09:21:50 UTC) NNTP-Posting-Date: Thu, 02 Oct 2014 09:21:50 UTC Date: Thu, 02 Oct 2014 09:21:50 GMT X-Received-Body-CRC: 1232984851 X-Received-Bytes: 1320 Xref: number.nntp.giganews.com comp.lang.ada:189299 Date: 2014-10-02T09:21:50+00:00 List-Id: On Wed, 01 Oct 2014 06:55:31 -0700, Stribor40 wrote: > I want to be able to represent numbers like 0.1234,-1,2345 and so on so > thats why I chose float. Is there any other way i can represent numbers > like that? Is there any other data type? Yes, there is also fixed point, though I have a feeling this is a trivial answer because you haven't quite got to the real question. - Brian