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.6 required=5.0 tests=BAYES_40,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: bill Subject: Re: i need help w/problem Date: 1999/02/22 Message-ID: <7ar30s$f6t@drn.newsguy.com>#1/1 X-Deja-AN: 447003196 References: <7aqjie$npj@netaxs.com> Organization: Newsguy News Service [http://www.newsguy.com] Newsgroups: comp.lang.ada Date: 1999-02-22T00:00:00+00:00 List-Id: In article , "Allan says... > >you convert the float number to string and then slice in > > num1 : float :=999.88; > number : string(1.. 6); > counter : natural :=1; > --body > number := string(num1); As Corey said, you cant do this! (this is not C :) > while ( number(counter) \= '.' and counter \= number'last) loop > counter := counter +1; > end loop To find a pattern within a string, you might want to use some of the search subprograms for type string such as Index(..), which will find for you the index that some pattern is located within a string. Index(..) is part of the standard Ada library. Bill.