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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e749bdf6fe4253aa X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-11-15 18:44:47 PST Path: supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.sttls1.wa.home.com.POSTED!not-for-mail Reply-To: "DuckE" From: "DuckE" Newsgroups: comp.lang.ada References: <002a01c04eca$dbaecc00$b0375140@Fudge> Subject: Re: Why no new posts ? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: Date: Thu, 16 Nov 2000 02:44:46 GMT NNTP-Posting-Host: 24.6.221.63 X-Complaints-To: abuse@home.net X-Trace: news1.sttls1.wa.home.com 974342686 24.6.221.63 (Wed, 15 Nov 2000 18:44:46 PST) NNTP-Posting-Date: Wed, 15 Nov 2000 18:44:46 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: supernews.google.com comp.lang.ada:2157 Date: 2000-11-16T02:44:46+00:00 List-Id: The best way I have found to find out what's available in the standard libraries that are included with Ada 95 is to peruse Appendix A of the Ada 95 LRM (Language Reference Manual). You can find the reference manual at: http://www.adaic.org/standards/ada95.html The LRM is not intended as a document from which to learn Ada 95, so use your text books for that, but it is a good reference. SteveD "JF Harrison" wrote in message news:002a01c04eca$dbaecc00$b0375140@Fudge... > My second basic question is just for converting types. > For example, is there a simple way to convert a string '123' into an > integer - is there a simple command for this in Ada? The previous post > included a for loop for doing this, but perhaps there is just a way to use > Get to grab it out of a string, or perhaps Ada has a ready made function to > do this in the standard package. > > Similarly, is there a simple way to convert Integers into Floats? The > strong typing protection in Ada is great, but when you have an integer and > actually want to save it as a Float, how to do it (standard function)? I > have John English's beginner's text, and Norman Cohen's Ada as a Second > Language; I scoured these today but didnt find an answer. > I would also like to know if there is a standard function for generating > floats. For example, Float(mantissa, exponent) = mantissa * 10 ** exponent, > or Floater(mantissa, radix, exponent) = mantissa * radix ** exponent. I > know how to do these for literals - ie 8#1.2#E4 or 5E3 - but I need to be > able to use a variable for the exponent. There must be such a function, I > just havent run accross it yet. > > > Thanks in advance, > JF Harrison >