From: bill <bill@newsguy.com>
Subject: Re: i need help w/problem
Date: 1999/02/22
Date: 1999-02-22T00:00:00+00:00 [thread overview]
Message-ID: <7ar30s$f6t@drn.newsguy.com> (raw)
In-Reply-To: Iz6A2.2502$LN5.3278079@news2.mia
In article <Iz6A2.2502$LN5.3278079@news2.mia>, "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.
next prev parent reply other threads:[~1999-02-22 0:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-21 0:00 i need help w/problem zufandel
1999-02-22 0:00 ` Allan Davis
1999-02-22 0:00 ` bill [this message]
1999-02-22 0:00 ` Corey Ashford
1999-02-22 0:00 ` David C. Hoos, Sr.
1999-02-22 0:00 ` Matthew Heaney
1999-02-23 0:00 ` Pascal Obry
1999-02-23 0:00 ` Matthew Heaney
1999-02-22 0:00 ` robert_dewar
1999-02-22 0:00 ` dennison
1999-02-22 0:00 ` zufandel
1999-02-22 0:00 ` Matthew Heaney
1999-02-22 0:00 ` Mike Silva
1999-02-22 0:00 ` Nick Roberts
1999-02-22 0:00 ` dennison
1999-02-22 0:00 ` zufandel
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox