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.

Reply via email to