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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, LOTS_OF_MONEY autolearn=no 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-02 07:52:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!psinet-eu-nl!psiuk-p4!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Naturals and discrete types Date: Fri, 2 Nov 2001 10:05:31 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9rucni$ief$1@nh.pace.co.uk> References: NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1004713522 18895 136.170.200.133 (2 Nov 2001 15:05:22 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 2 Nov 2001 15:05:22 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:15657 Date: 2001-11-02T15:05:22+00:00 List-Id: It depends on what you want to do and what behavior you need from the conversion. Between your basic Integer and Float, you can use a standard type conversion: Integer_Thing := Integer (Float_Thing) ; However, depending on how you want to handle rounding/truncation, etc you might want some other behavior. Look at Annex K - there are attributes that will do just about anything you want. (Really! Annex K is your friend! *LOTS* of powerful stuff in there. Read it thoroughly.) MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Clueless" wrote in message news:EtkE7.221650$K6.106545662@news2... > > However, I'm still a little fuzzy on the best way to convert between real > and discrete types. >