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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,991f222102c1cd00 X-Google-Attributes: gid103376,public From: Marin David Condic Subject: Re: Type Conversion Date: 1998/11/02 Message-ID: <363E5CFF.8D622EE1@flinet.com>#1/1 X-Deja-AN: 407765897 Content-Transfer-Encoding: 7bit References: <71g71d$r7d@news3.force9.net> To: Heather Wright Content-Type: text/plain; charset=us-ascii Organization: Florida Internet Corporation Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-11-02T00:00:00+00:00 List-Id: See section 4.6 of the Ada Reference Manual for the full details - there are implications with things like rounding, etc. that you may need to understand. Basically, it looks like a function call with the type name as the name of the function. As in: declare X : Integer ; Y : Float := 1.234 ; begin X := Float (Y) ; end ; Good luck. MDC Heather Wright wrote: > Probably a really lame question, but what is the syntax for type conversion > in Ada? > > I'm trying to convert a float to an int (or vice-versa if necessary), the > help files are doing > me no good and the closest thing I found online was a comparison between > type conversion and > qualifier. > > Yeah, I'm a complete Newbie at Ada. > > Thanks very much for any help, > > Heather -- Marin David Condic =========================================================== "A government that is big enough to give you all you want is big enough to take it all away." -- Barry Goldwater ===========================================================