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,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: "Allan Davis" Subject: Re: i need help w/problem Date: 1999/02/22 Message-ID: #1/1 X-Deja-AN: 446969986 References: <7aqjie$npj@netaxs.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 NNTP-Posting-Date: Mon, 22 Feb 1999 01:12:56 EST Newsgroups: comp.lang.ada Date: 1999-02-22T00:00:00+00:00 List-Id: 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 > > >