@vikas first read what i wrote On Sat, Aug 6, 2011 at 12:59 AM, vikash <[email protected]> wrote:
> its due to precision limit of double is larger than float, and by > default real values are stored as double so constant 0.7 is stored > more accurately(8 bytes) that float a=0.7 (4 bytes). and when > comparing the two float is typecasted into double and so the ramaining > bits are padded with 0 so 0.7 > a; > > -- > 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. > > -- **Regards SAGAR PAREEK COMPUTER SCIENCE AND ENGINEERING NIT ALLAHABAD -- 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.
