@siddharam: for the second one, the series is like this the first character will print once. second one twice third one four times and so on
1,2,4,8,... On Sun, Aug 7, 2011 at 4:53 PM, Dave <[email protected]> wrote: > 6.5 = 2^2 + 2^1 + 2^-1 > Binary representation = 110.1 = 1.101 * 2^2. > > 0.1 = 2^-3 + 2^-4 + 2^-7 + 2^-8 + 2^-11 + 2^-12 + ... > Binary representation = 0.001100110011... = 1.10010011... * 2^-3. > > Dave > > On Aug 7, 1:18 am, ankit sambyal <[email protected]> wrote: > > @programming love : 0.1 can't be represented accurately in binary. If u > try > > to convert it into binary, it will not terminate. Try it !! But 6.5 can > be > > converted. > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
