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: Michael Kaufman Subject: Re: Type Conversion Date: 1998/11/02 Message-ID: <71lbsu$1ps@morgan.vf.lmco.com>#1/1 X-Deja-AN: 407712522 Distribution: world Content-Transfer-Encoding: 8bit References: <71g71d$r7d@news3.force9.net> Content-Type: text/plain; charset=ISO-8859-1 X-XXMessage-ID: <6558F50FD4011051@disney.sanders.lmco.com> Organization: Lockheed Martin Corp, Valley Forge PA Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-11-02T00:00:00+00:00 List-Id: Hi, In general type conversions look much like function calls, where the destination type is the "function". For example: procedure A_Test is A_Integer : Integer := 10; A_Float : Float := 10.0; begin A_Integer := Integer(A_Float); -- Converts the float to an integer. A_Float := Float(A_Integer); -- Converts the integer to a float. end A_Test; Note that the cast from float to integer will round. Hope this helps, Mike