multiply the no. with 10 nd store in temp. now subtract no from temp. check
if the decimal part is zero if yes.  then 1st digit after decimal is
recurring. if no. multiply the no with 100 and repeat . if this time decimal
part is zero then 2 digits after decimal r recurring nd so on..

On 8 June 2010 21:45, Veer Sharma <thisisv...@rediffmail.com> wrote:

> You have a Numerator and Denominator. After division you might get a
> recurring decimal points float as the answer.
>
> Problem is: You need to identify the recurring part for a given
> decimal no?
> For example 23.34563456 ...
> return 3456
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algoge...@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to