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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,58e0097f787e49d4 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-01 15:20:36 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news2.POSTED!not-for-mail From: "Clueless" Subject: RE: Naturals and discrete types Newsgroups: comp.lang.ada References: User-Agent: Pan/0.10.0 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Comment-To: "Beard, Frank" Message-ID: <8NkE7.221689$K6.106569186@news2> Date: Thu, 01 Nov 2001 23:20:36 GMT NNTP-Posting-Host: 24.0.109.49 X-Complaints-To: abuse@home.net X-Trace: news2 1004656836 24.0.109.49 (Thu, 01 Nov 2001 15:20:36 PST) NNTP-Posting-Date: Thu, 01 Nov 2001 15:20:36 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:15599 Date: 2001-11-01T23:20:36+00:00 List-Id: In article , "Beard, Frank" wrote: > -----Original Message----- > From: Clueless [mailto:chris@dont.spam.me] > >> However, I'm still a little fuzzy on the best way to convert between >> real and discrete types. > > I : integer := 0; > Y : float := 3.14; > begin > I := integer(Y); -- now I = 3; > > > or > > I : integer := 9; > Y : float := 0.0; > begin > Y := float(I); -- now Y ~ 9.0; Everything is so damn simple isnt it? ;-> And I remember covering this subject early on in my textbook. I'm a typical greenhorn I guess, making everything more complicated than it has to be. Thanks for your patience. Clueless chris@dont.spam.me