From: "Allan Davis" <adavis1@bellsouth.net>
Subject: Re: i need help w/problem
Date: 1999/02/22
Date: 1999-02-22T00:00:00+00:00 [thread overview]
Message-ID: <Iz6A2.2502$LN5.3278079@news2.mia> (raw)
In-Reply-To: 7aqjie$npj@netaxs.com
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);
while ( number(counter) \= '.' and counter \= number'last) loop
counter := counter +1;
end loop
if (counter \= number'last) then
put(number(1..counter-1) +" "+ number(counter+1..
number'last);
end if
zufandel wrote in message <7aqjie$npj@netaxs.com>...
>I am at wits end...I am taking ada class..and we have a small project and I
>dont understand one feature that i am supposed to do...I would appreciate
>any help from anyone.
>
>We have to input a float number and then print the 2 sides of the decimal
by
>themselves...for example...999.88 the output has to be
>
>999 88
>
>without the decimal point..I have racked my brains out trying to figure
this
>out..could anyone please help me with this?
>
>TIA
>
>Zuf
>
>
>
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 [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 ` Matthew Heaney
1999-02-22 0:00 ` Mike Silva
1999-02-22 0:00 ` zufandel
1999-02-22 0:00 ` dennison
1999-02-22 0:00 ` Nick Roberts
1999-02-22 0:00 ` dennison
1999-02-22 0:00 ` zufandel
1999-02-22 0:00 ` bill
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox