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.4 required=5.0 tests=BAYES_50,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6de5be91df1d0de2 X-Google-Attributes: gid103376,public From: Corey Ashford Subject: Re: i need help w/problem Date: 1999/02/22 Message-ID: <36D0FD58.6474E351@rocketmail.com>#1/1 X-Deja-AN: 446978887 Content-Transfer-Encoding: 7bit References: <7aqjie$npj@netaxs.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Rational Software Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-02-22T00:00:00+00:00 List-Id: Allan Davis wrote: > > you convert the float number to string and then slice in > > ie. -- variables > num1 : float :=999.88; > number : string(1.. 6); > counter : natural :=1; > --body > number := string(num1); That conversion won't work. Use something like: number : constant string := float'image(float_variable); in this case, float_variable = 999.98. [rest of post snipped due to picky newgroup server] - Corey